Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.12
-
None
-
None
-
JDK 1.7.0_02, Windows 7.
Description
Maven is configured with JUnit 4.10. Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<configuration>
<test>com.example.MyTest</test>
</configuration>
</plugin>
With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
I don't see anything in the release announcement that should account for this.
If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.
Attachments
Attachments
Issue Links
- duplicates
-
SUREFIRE-827 Surefire 2.12 cannot run a single test, regression from 2.11
- Closed
- is duplicated by
-
SUREFIRE-847 surefire cannot run single testng test
- Closed
- is related to
-
SUREFIRE-824 SpecificTestClassFilterTest currently fails on windows
- Closed