[ 
https://issues.apache.org/jira/browse/SUREFIRE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579841#comment-14579841
 ] 

Tibor Digana commented on SUREFIRE-903:
---------------------------------------

[~chrisjr]
The combination of -Dtest=className and -Dgroups=... should work. Can you test 
it?

> Execute tests by group as well as by class
> ------------------------------------------
>
>                 Key: SUREFIRE-903
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-903
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.12.2
>         Environment: Maven 3, TestNG 6.7, NetBeans 7.2
>            Reporter: Chris Rankin
>
> Similar to SUREFIRE-577, only execute methods on a class if they belong to a 
> certain group or groups.
> NetBean's "Test File" action invokes a particular TestNG class via 
> {{-Dtest=className}}. However, this completely ignores the TestNG groups and 
> executes _every_ {{@Test}}, including {{@BeforeClass}} methods that were 
> supposed to have been excluded (and mutually exclusive!).
> Using {{-Dgroups=...}} respects the grouping but also executes all classes, 
> whereas I am trying to debug only one class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to