Joe Jordan created SUREFIRE-1156:
------------------------------------
Summary: 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:
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
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:
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)