[ https://issues.apache.org/jira/browse/SUREFIRE-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Lehky updated SUREFIRE-1789: --------------------------------- Description: I am trying to use {{include}} configuration using fully qualified class name, as described [here|https://maven.apache.org/surefire/maven-failsafe-plugin/examples/inclusion-exclusion.html#Fully_qualified_class_name]. I have the following hierarchy in my test folder (showing only relevant parts): {noformat} src/test/java + features.feature_a +- SomeStory.java + ignore.features.under_construction +- AnotherStory.java {noformat} My pom configuration is: {code:xml} <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> {code} 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.*". was: I am trying to use {{include}} configuration using fully qualified class name, as described [here|https://maven.apache.org/surefire/maven-failsafe-plugin/examples/inclusion-exclusion.html#Fully_qualified_class_name]. I have the following hierarchy in my test folder (showing only relevant parts): {noformat} + features.feature_a +- SomeStory.java + ignore.features.under_construction +- AnotherStory.java {noformat} My pom configuration is: {code:xml} <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> {code} 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.*". > inclusion using fully qualified class name is not respected > ----------------------------------------------------------- > > Key: SUREFIRE-1789 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1789 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin, Maven Surefire Plugin > Affects Versions: 2.22.2 > Reporter: Mark Lehky > Priority: Minor > > I am trying to use {{include}} configuration using fully qualified class > name, as described > [here|https://maven.apache.org/surefire/maven-failsafe-plugin/examples/inclusion-exclusion.html#Fully_qualified_class_name]. > I have the following hierarchy in my test folder (showing only relevant > parts): > {noformat} > src/test/java > + features.feature_a > +- SomeStory.java > + ignore.features.under_construction > +- AnotherStory.java > {noformat} > My pom configuration is: > {code:xml} > <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> > {code} > 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.*". -- This message was sent by Atlassian Jira (v8.3.4#803005)