[ https://jira.codehaus.org/browse/SUREFIRE-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284924#comment-284924 ]
selckin commented on SUREFIRE-805: ---------------------------------- Hit the same problem 2.11 seems to ignore excludedGroups with testng, works with 2.10 > Regression: surefire 2.11 seems to break excludeGroups config with TestNG > ------------------------------------------------------------------------- > > Key: SUREFIRE-805 > URL: https://jira.codehaus.org/browse/SUREFIRE-805 > Project: Maven Surefire > Issue Type: Bug > Reporter: Christoph Kutzinski > > I've a configuration to differentiate between unit and integration tests via > TestNG groups. > I cannot provide the full POM/project, but the relevant parts of the POMs > like this: > {noformat} > <properties> > <skipUnitTests>${skipTests}</skipUnitTests> > <skipIntegrationTests>true</skipIntegrationTests> > </properties> > <plugin> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.10</version><!-- Note: 2.11 seems to break > excludedGroups configs --> > <configuration> > <!-- skip default execution. Use executions defined below > --> > <skip>true</skip> > </configuration> > <executions> > <execution> > <id>surefire-unit</id> > <phase>test</phase> > <goals> > <goal>test</goal> > </goals> > <configuration> > <skip>${skipUnitTests}</skip> > <excludedGroups>INTEGRATION</excludedGroups> > </configuration> > </execution> > <execution> > <id>surefire-it</id> > <phase>integration-test</phase> > <goals> > <goal>test</goal> > </goals> > <configuration> > <skip>${skipIntegrationTests}</skip> > <excludedGroups>UNIT</excludedGroups> > <forkMode>once</forkMode> > </configuration> > </execution> > </executions> > </plugin> > <profiles> > <profile> > <id>it-tests</id> > <properties> > <skipUnitTests>true</skipUnitTests> > <skipIntegrationTests>false</skipIntegrationTests> > </properties> > </profile> > </profiles> > {noformat} > With Surefire this works fine - i.e. integration tests are only disabled with > the it-tests profile. With Surefire 2.11 the it tests are executed in the > default profile! -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira