You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joe Jordan (JIRA)" <ji...@apache.org> on 2015/05/13 02:18:59 UTC
[jira] [Updated] (SUREFIRE-1156) surefire-junit47 reports results
against incorrect test
[ https://issues.apache.org/jira/browse/SUREFIRE-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Jordan updated SUREFIRE-1156:
---------------------------------
Description:
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
was:
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
> 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)