You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chris Rankin (JIRA)" <ji...@codehaus.org> on 2012/08/16 13:13:21 UTC
[jira] (SUREFIRE-903) Execute tests by group as well as by class
Chris Rankin created SUREFIRE-903:
-------------------------------------
Summary: Execute tests by group as well as by class
Key: SUREFIRE-903
URL: https://jira.codehaus.org/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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-903) Execute tests by group as well as by class
Posted by "Chris Rankin (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306355#comment-306355 ]
Chris Rankin commented on SUREFIRE-903:
---------------------------------------
Perhaps via extended syntax like {{-Dtest=MyClass@group1+group2}}.
> Execute tests by group as well as by class
> ------------------------------------------
>
> Key: SUREFIRE-903
> URL: https://jira.codehaus.org/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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira