[
https://issues.apache.org/jira/browse/SUREFIRE-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541598#comment-14541598
]
Tibor Digana commented on SUREFIRE-1156:
----------------------------------------
I have seen same issue in JUnit project, but finding those missing among 900
test was postponing the investigation on my side.
AFAIK there was instantiation problem with Cucumber Runner as talked about it
in JUnit group.
Isn't any exception in the reports ?
> 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)