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

Does not run test ThreeTestFour.java which matches the include **/*Test*.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.16
    • documentation
    • None

    Description

      The page http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html says that the default includes are

      <includes>
       <include>**/*Test*.java</include>
       <include>**/*Test.java</include>
       <include>**/*TestCase.java</include>
      </includes>
      

      The first of the include REs matches ThreeTestFour.java which does not get run.

      It also matches the other two include lines which could therefore be removed - however the first include line is wrong, it should be:

      <include>**/Test*.java</include>
      

      so the list should be:

      <includes>
       <include>**/Test*.java</include>
       <include>**/*Test.java</include>
       <include>**/*TestCase.java</include>
      </includes>
      

      [Note: the first include covers **/TestCase*.java]

      Attachments

        Activity

          People

            agudian Andreas Gudian
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: