[
https://jira.codehaus.org/browse/SUREFIRE-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed SUREFIRE-858.
---------------------------------------
Resolution: Duplicate
Fix Version/s: 2.13
Assignee: Kristian Rosenvold
Dupes SUREFIRE-827/SUREFIRE-824
> Running a single unit test in Windows
> -------------------------------------
>
> Key: SUREFIRE-858
> URL: https://jira.codehaus.org/browse/SUREFIRE-858
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.12
> Environment: Windows 7
> Reporter: Sathyakumar Seshachalam
> Assignee: Kristian Rosenvold
> Priority: Blocker
> Fix For: 2.13
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira