Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-858

Running a single unit test in Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.12
    • None
    • Maven Surefire Plugin
    • None
    • Windows 7

    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.

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              sathyakumar.s Sathyakumar Seshachalam
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: