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

Allow rerunFailingTestsCount, skipAfterFailureCount together

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19
    • 2.19.1
    • Maven Failsafe Plugin
    • None

    Description

      I couldn't find this limitation documented anywhere, but if I try to use the options rerunFailingTestsCount and skipAfterFailureCount together, I get this error message:

      org.apache.maven.plugin.MojoFailureException: 
      Parameters ["rerunFailingTestsCount", "skipAfterFailureCount"] 
      should not be enabled together
      

      I have a use case which requires both options: some integration tests are flaky, so I want to use rerunFailingTestsCount to repeat them, but if all tests are failing (eg due to a configuration problem or a really bad change), I don't want to wait for the entire test suite to fail multiple times, so I would like to abort if say 10 tests have failed.

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            sflanigan Sean Flanigan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: