[
https://issues.apache.org/jira/browse/SUREFIRE-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542507#comment-14542507
]
Tibor Digana commented on SUREFIRE-1156:
----------------------------------------
Cucumber is running Test2 three times and Test1 once.
Altogether 4.
The Cucumber changes the description to "Scenario: Scenario:" instead of class
name and now it looks like Cucumber does not call testStarted() on
org.junit.runner.notification.RunListener.
> surefire-junit47 reports results against incorrect test
> -------------------------------------------------------
>
> Key: SUREFIRE-1156
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1156
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Affects Versions: 2.18.1
> Reporter: Joe Jordan
>
> There is a minimal non-working example here:
> https://github.com/joedj/surefire-test.git
> The project includes two tests - Test1, a simple junit test, and Test2, a
> cucumber test. Test2 prints "Test2 Output".
> When run with junit4, both the tests run, and the output is correct:
> {quote}
> surefire-test$ mvn clean test -Pjunit4 | grep Running
> Running Test1
> Running Test2
> surefire-test$ grep -rl 'Test2 Output' target/surefire-reports
> target/surefire-reports/Test2-output.txt
> {quote}
> When run with junit47, both the tests run, but the "Running Test2" line is
> never printed, and the Test2 output appears in the wrong file:
> {quote}
> surefire-test$ mvn clean test -Pjunit47 | grep Running
> Running Test1
> surefire-test$ grep -rl 'Test2 Output' target/surefire-reports
> target/surefire-reports/*Test1*-output.txt
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)