You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ion Iovu (JIRA)" <ji...@apache.org> on 2019/04/03 05:05:00 UTC

[jira] [Created] (SUREFIRE-1657) `skipAfterFailureCount` not working with JUnit 5

Ion Iovu created SUREFIRE-1657:
----------------------------------

             Summary: `skipAfterFailureCount` not working with JUnit 5
                 Key: SUREFIRE-1657
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1657
             Project: Maven Surefire
          Issue Type: Bug
          Components: JUnit 5.x support
    Affects Versions: 2.22.1
         Environment: java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

macOS 10.14.3

Apache Maven 3.6.0
            Reporter: Ion Iovu
         Attachments: stop-on-fail.zip

Attached MVP demonstrating issue. 2 commits. One showing working example with JUnit 4.12, and another showing reproducing issue with JUnit 5.4. There are 3 failing tests and *skipAfterFailureCount=1* configured.

*Steps to reproduce*
 # Run _$ mvn clean test_ on attached project

*Expected*

After _fail1()_ test method fails, the other two test methods not executed.

*Actual*

All 3 methods executed:
{code:java}
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   MyTest.fail1:12
[ERROR]   MyTest.fail2:17
[ERROR]   MyTest.fail3:22{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)