Honza Brázdil created SUREFIRE-889: --------------------------------------
Summary: 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 Reporter: Honza Brázdil 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