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

"test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)


    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.12
    • Fix Version/s: None
    • Component/s: Junit 4.x support
    • Labels:
    • Environment:
      JDK 1.7.0_02, Windows 7.


      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):


      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.


        1. SUREFIRE-844-2.12.txt
          65 kB
          Mark A. Ziesemer
        2. SUREFIRE-844-2.11.txt
          61 kB
          Mark A. Ziesemer
        3. SUREFIRE-844.zip
          1 kB
          Mark A. Ziesemer

          Issue Links



              • Assignee:
                krosenvold Kristian Rosenvold
                ziesemer Mark A. Ziesemer
              • Votes:
                5 Vote for this issue
                6 Start watching this issue


                • Created: