[ 
https://jira.codehaus.org/browse/SUREFIRE-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=304554#comment-304554
 ] 

Paul Gier commented on SUREFIRE-889:
------------------------------------

Thanks for the patch!  Can you add a usage example to the site docs?  There are 
some relevant pages located under src/site/apt/examples/ which describe the 
"groups" parameter in the pages junit.apt.vm and testng.apt.vm.  The apt format 
is documented here: http://maven.apache.org/doxia/references/apt-format.html


                
> JUnit | supprot inheritance of test's categories/groups
> -------------------------------------------------------
>
>                 Key: SUREFIRE-889
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-889
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>            Reporter: Honza Brázdil
>             Fix For: 2.12.1
>
>         Attachments: surefire-hierarchical-categories.patch
>
>
> We have multiple tests in multiple groups and we want to use tests group 
> hierarchy using interface inheritance so we can specify if we wants to run 
> e.g. all NiceTests or more specific NicePurpleTests.
> Right now are tests @Category compared to surefire's group by class name.
> e.g.:
> If we have category hierarchy:
> {code:java}
> interface NiceTests extends AllTests;
> interface NicePurpleTests extends NiceTests;
> {code}
> and tests:
> {code:java}
> @Category(NiceTests.class) public void ReallyNiceTest();
> @Category(NicePurpleTests.class) public void NicePurpleTestWithDots();
> {code}
> and surefire groups set to:
> {code:xml}<groups>com.example.NiceTests</groups>{code}
> it runs only {{ReallyNiceTest}}, but not {{NicePurpleTestWithDots}} as wanted.
> I've attached patch which fixed it for me.

--
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


Reply via email to