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

inclusion using fully qualified class name is not respected

    XMLWordPrintableJSON

Details

    Description

      I am trying to use include configuration using fully qualified class name, as described here.
      I have the following hierarchy in my test folder (showing only relevant parts):

      src/test/java
      + features.feature_a
      +- SomeStory.java
      + ignore.features.under_construction
      +- AnotherStory.java
      

      My pom configuration is:

      <plugin>
      	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-failsafe-plugin</artifactId>
      	<version>${surefire.plugin.version}</version>
      	<configuration>
      		<includes>
      			<include>features.*.*Story</include>
      		</includes>
      	</configuration>
      	<executions>
      		<execution>
      			<goals>
      				<goal>integration-test</goal>
      				<goal>verify</goal>
      			</goals>
      		</execution>
      	</executions>
      </plugin>
      

      When I execute mvn verify both of the above Stories are run.

      I am expecting that only "SomeStory" will be run. The other test "AnotherStory", is not in the package "features.*".

      Attachments

        Activity

          People

            Unassigned Unassigned
            mlehky Mark Lehky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: