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

There should be no extensions on excludes, while doc examples show extensions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • waiting-for-feedback
    • None
    • None

    Description

      I ran into a problem, and found the solution:
       
      My pom started out like this:
       
       

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.22.0</version>
         <configuration>
             <excludes>
                 <exclude>**/RunBackendTest.groovy</exclude>
             </excludes>
           </configuration>
       </plugin>
        

      This didn’t work in any way!
       
      I copied the pom plugin configuration from this page: https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
       
      But I finally solved the problem. My pom now looks like this:
       
       

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.22.0</version>
         <configuration>
             <excludes>
                 <exclude>**/RunBackendTest</exclude>
             </excludes>
         </configuration>
      </plugin>  

      See the difference ? No extension on test file! But the above referenced maven documentation examples do include the extensions, which clearly does not work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tombensve Tommy Svensson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: