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

skipAfterFailureCount not honoured with multiple executions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • Maven Failsafe Plugin
    • None

    Description

      I have a pom with 2 executions of the failsafe plugin which is configured as described here:

      https://maven.apache.org/surefire/maven-failsafe-plugin/usage.html#running-integration-tests-multiple-times

      I would like the build to fail and not run the second <execution> if the first one has a test failure. It seems the plugin does not honour the skipAfterFailureCount in this case.

      Expected behaviour:
      Build fails after the first test failure
       
      Actual:
      Build continues to execute

      Minimal sample project:

      https://github.com/armandino/maven-failsafe-plugin-bug-report

      Attachments

        Activity

          People

            Unassigned Unassigned
            armandino Arman Sharif
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: