Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-654

TestNG: Recognize successful tests when using invocationCount and successPercentage parameters on the @Test annotation

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.18
    • Component/s: TestNG support
    • Labels:
      None
    • Environment:

      Description

      Surefire does not recognize successful tests using TestNG with the invocationCount and successPercentage parameters on the @Test annotation. BugTest.java in the attached file has an invocationCount = 100 with a successPercentage = 1. 1 test in 100 needs to pass for the test to be considered successful. However when running mvn clean test Surefire reports the tests as failed. The generated report shows the tests as passing. Surefire should be identifying this test as passing.

        Attachments

        1. bugtest.tar.gz
          1.0 kB
          Steve Stodola
        2. surefire654.diff
          24 kB
          Steve Stodola
        3. surefire-fix-test.zip
          0.9 kB
          Andrew Phillips
        4. surefire-fix-test-build-output.txt
          3 kB
          Andrew Phillips

          Issue Links

            Activity

              People

              • Assignee:
                agudian Andreas Gudian
                Reporter:
                stodolas Steve Stodola
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: