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

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.18
    • TestNG support
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: