[ https://jira.codehaus.org/browse/SUREFIRE-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=356255#comment-356255 ]
Melloware commented on SUREFIRE-1054: ------------------------------------- Tibor, I definitely undertstand that but let me give you my scenario and if you still don't think it is valid I can agree with you closing the ticket. Scenario: I have a master parent pom from which all pom's in my entire organization inherit. We do this so we can enforce global settings like Findbugs, Jacoco, PMD etc as well as move all the boierplate pom stuff into one centrally managed pom. So that is where we store our TestNG surefire settings. One day management came to me and said they want to exlcude all "integration" tests from all daily builds in the entire company. So I wanted to add <excludeGroups>integration</excludeGroups> right in that master pom so with one line I just did it for the entire company. And thus that is how I reported this issue. I hope that makes sense? > "test" property overrides "excludes" but not "excludedGroups" > ------------------------------------------------------------- > > Key: SUREFIRE-1054 > URL: https://jira.codehaus.org/browse/SUREFIRE-1054 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.16 > Environment: Maven 3.1.1, JUnit 4.11, maven-surefire-plugin 2.16 > Reporter: Elizabeth Chatman > Assignee: Tibor Digana > > I recently changed my maven configuration to use the "excludedGroups" > property instead of "excludes", and found that I can no longer run individual > tests if they are part of the excludedGroups. > Example: > My default configuration used to look like this (using path and filename > matching to try to match groups of tests): > {code:xml} > <excludes> > <exclude>**/integration/**</exclude> > <exclude>**/*IntegrationTest.java</exclude> > </excludes> > {code} > My new configuration, after annotating my integration tests with > {{@Category(IntegrationTests.class)}}: > {code:xml}<excludedGroups>com.mycompany.IntegrationTests</excludedGroups>{code} > Previously, I could run a single integration test using: > {{mvn test -Dtest=NameOfIntegrationTest}} > Now that command fails ("No tests were executed!") unless I manually override > the excludedGroups property ({{mvn test -Dtest=NameOfIntegrationTest > -DexcludedGroups=}}) -- This message was sent by Atlassian JIRA (v6.1.6#6162)