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

Jesse Glick commented on SUREFIRE-829:
--------------------------------------

Seems wrong to me. If the authors of {{Category}} had intended it to be 
inherited, they would have marked it {{@Inherited}}. If they simply never 
thought of this use case but agree that it should work, then a new JUnit 
release should add the annotation. In neither case should Surefire be patched.
                
> junit | Support inheritance while running test cases belonging to a 
> particular category/group
> ---------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-829
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-829
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>            Reporter: Gayathri Muralidharan
>            Assignee: Andreas Gudian
>             Fix For: 2.15
>
>         Attachments: SUREFIRE-829-common-junit48-20130506.patch, 
> SUREFIRE-829-common-junit48-new.patch, SUREFIRE-829-common-junit48.patch
>
>
> We have a parent class which is extended by all the unit test cases (multi 
> module maven based project)
> It would be great if surefire plugin config looks for the category in parent 
> class as well. This will avoid redundant @Category(UnitTestCategory.class) 
> annotations, as we expect all unit test cases to extend the corresponding 
> base class and the base class will alone be annotated with 
> @Category(UnitTestCategory.class)
> Please let me know if this can be achieved by any other config.
> Thanks,
> Gayathri

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to