[ https://issues.apache.org/jira/browse/SUREFIRE-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15501548#comment-15501548 ]
Hudson commented on SUREFIRE-1278: ---------------------------------- SUCCESS: Integrated in Jenkins build maven-surefire #1617 (See [https://builds.apache.org/job/maven-surefire/1617/]) Fix for SUREFIRE-1278 - TestNG tests are run with group name that ends (tibor17: rev ae6337ea216b867e76e951e09951e475ed105d06) * (add) surefire-integration-tests/src/test/resources/surefire-1278-group-name-ending/pom.xml * (edit) surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/SingleGroupMatcher.java * (add) surefire-integration-tests/src/test/resources/surefire-1278-group-name-ending/src/test/java/pkg/ATest.java Fix for SUREFIRE-1278 - TestNG tests are run with group name that ends (tibor17: rev bab3175e8388b675e1e56814d3b1a5aa25ae250a) * (add) surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1278GroupNameEndingIT.java > TestNG tests are run with group name that ends with specified group > -------------------------------------------------------------------- > > Key: SUREFIRE-1278 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1278 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.19.1 > Environment: OS X El Capitan 10.11.6 > TestNG 6.9.10 > Reporter: Kostya Hospodarysko > Assignee: Tibor Digana > Fix For: 2.19.2 > > Attachments: testng-groups.zip > > > h4.Preconditions: > There is a simple TestNG class with two methods so that 1st method has group > "group" and 2nd has group "apigroup". > h4.Steps to reproduce: > Run tests with command: > {noformat} > mvn clean test -Dgroups=group > {noformat} > {color:red}h4.Actual:{color} > Both tests are run. > {color:green}h4.Expected:{color} > Only method with group "group" is run. > Demo project could be found here: > https://github.com/khospodarysko/testng-groups. > Looks like the issue is in GroupMatcherMethodSelector as looking at > includeMethod it is seen that is always returns true. -- This message was sent by Atlassian JIRA (v6.3.4#6332)