Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Duplicate
-
Affects Version/s: 2.12
-
Fix Version/s: 2.12.1
-
Component/s: Maven Surefire Plugin
-
Labels:None
-
Environment:Windows 7
-
Complexity:Intermediate
-
Number of attachments :
Description
I tried running a single unit test via -Dtest=MyTestName in a windows 7 machine, However this test (com\test\MyTestName.class) is not picked up by surefire. The problem seems to be a call to
SelectorUtils.matchPath from org.apache.maven.surefire.SpecificTestClassFilter
The actual args to matchPath are ("**/MyTestName.class", "com\\test
MyTestName.class", true). This always returns false in Windows environment because of the backslash char in second arg, but might succeed in linux like OS.
Issue Links
- duplicates
-
SUREFIRE-827
Surefire 2.12 cannot run a single test, regression from 2.11
-
Activity
Mark Ziesemer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue duplicates |
Kristian Rosenvold
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Kristian Rosenvold [ krosenvold ] | |
| Fix Version/s | 2.13 [ 18312 ] | |
| Resolution | Duplicate [ 3 ] |
Dupes
SUREFIRE-827/SUREFIRE-824