Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.12
-
Fix Version/s: 2.12.1
-
Component/s: TestNG support
-
Labels:None
-
Environment:Windows 7 x64
-
Complexity:Intermediate
-
Number of attachments :
Description
Trying to run single testng test class with command mvn test -Dtest=SomeTest fails with message
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project web-integration-tests: No tests were executed!
(Set -DfailIfNoTests=false to ignore this error.) -> [Help 1].
Issue Links
- duplicates
-
SUREFIRE-827
Surefire 2.12 cannot run a single test, regression from 2.11
-
-
SUREFIRE-844
"test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
-
We are having the same issue.
On Linux machines the -Dtest=TestCassName argument is honored, while on Windows machines it fails the build with no tests found.