You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/07/01 08:47:43 UTC

[jira] Commented: (SUREFIRE-656) JUnit 4.8 @Category support

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

Kristian Rosenvold commented on SUREFIRE-656:
---------------------------------------------

Getting this to work is far trickier than it seems since there's such a wealth of corner cases to be covered, including individual test methods annotated with @Category. 

I have a branch that implements a "naive" solution at https://github.com/krosenvold/maven-surefire/tree/SUREFIRE656 . Unfortunately I am not very happy with this solution, it seems to eb leading us into whole bunch of complexities we don't want to handle. 

I've been looking into supporting this with Dale Emery's runtime-suite, which can be found at
https://github.com/dhemery/runtime-suite.git. I am still undecided as to what is the optimal way to go here.



> JUnit 4.8 @Category support
> ---------------------------
>
>                 Key: SUREFIRE-656
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-656
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Junit 4.x support
>    Affects Versions: 2.7
>         Environment: any
>            Reporter: KP
>
> I am interested in adding JUnit's {{@Category}} support.  TestNG already has group support in Surefire, so this would be a nice addition.
> I'm wondering if someone could point me in the right direction.  Unfortunately, I'm not familiar with the Surefire source code.
> 1. Do I need to add another provider or something?
> 1. Should I just subclass {{SurefireTestSuite}} in the same manner as {{JUnitCoreDirectoryTestSuite}}?
> 1. Should I model 
> Any help would be greatly appreciated.  I have some free time and I'd love to submit a patch this week.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira