[
https://issues.apache.org/jira/browse/SUREFIRE-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851428#comment-15851428
]
Daniel Halperin commented on SUREFIRE-1329:
-------------------------------------------
(This may be user error, still. Verifying...)
> No way to exclude tests with no Category from groups
> ----------------------------------------------------
>
> Key: SUREFIRE-1329
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1329
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Reporter: Daniel Halperin
>
> We would like in one module to run all the tests in another module in a
> certain category ({{NeedsRunner}})). We do this as follows, using {{groups}}
> and {{dependenciesToScan}}:
> {code}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <executions>
> <execution>
> <id>runnable-on-service-tests</id>
> <phase>integration-test</phase>
> <goals>
> <goal>test</goal>
> </goals>
> <configuration>
> <groups>org.apache.beam.sdk.testing.NeedsRunner</groups>
> <parallel>none</parallel>
> <failIfNoTests>true</failIfNoTests>
> <dependenciesToScan>
> <dependency>org.apache.beam:beam-sdks-java-core</dependency>
>
> <dependency>org.apache.beam:beam-runners-core-java</dependency>
> </dependenciesToScan>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> However, this configuration seems to ALSO run the tests in the
> {{dependencyToScan}} that do not have a {{@Category}} annotation. Is there a
> way to make the {{groups}} configuration "strict" so that it excludes
> no-Category tests?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)