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

Regression - Failsafe with JUnit 5: @BeforeAll failure incorrectly succeeds

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M4
    • Fix Version/s: None
    • Component/s: Maven Failsafe Plugin
    • Labels:

      Description

      A failure in a JUnit 5 @BeforeAll setup method causes the integration tests to be skipped, and the result is an incorrect build success.

      This is a regression; the same code correctly causes a build failure in 2.22.2, 3.0.0-M1, 3.0.0-M2, and 3.0.0-M3.

      Replication steps:

      1. Unpack project
      2. mvn verify

      Expected result: Build failure

      Actual result: Build success

      The stdout summary reports that no tests were run

       

        Attachments

        1. bug_example.tgz
          0.9 kB
          Chris Yee
        2. pom.xml
          1 kB
          Chris Yee
        3. ExampleIT.java
          0.8 kB
          Chris Yee

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chrisyee Chris Yee
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: