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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M4
    • None
    • Maven Failsafe Plugin

    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. ExampleIT.java
          0.8 kB
          Chris Yee
        3. pom.xml
          1 kB
          Chris Yee

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment