[ https://jira.codehaus.org/browse/SUREFIRE-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=325826#comment-325826 ]
Paul Sprague commented on SUREFIRE-833: --------------------------------------- Yeah I got a similar response on the dev list a while back and decided I had better things to do with my time. I personally don't care about IDE support, that wasn't the motivation for this feature. I don't know anyone that runs sets of tests inside their IDE using the junit category feature. This is about selecting tests for execution when you have multiple surefire executions with different JVM/runtime requirements. So it is a maven specific feature for sure, but then so is surefire and the maven executions model. Anyway I have gone a different route with this. I am now using custom JUnit runners on 100% of my test classes to pull this off. This solution sucks but at least I'm not coupled to maven and this will make the switch to gradle easier. > Support for annotated JUnit @Category > ------------------------------------- > > Key: SUREFIRE-833 > URL: https://jira.codehaus.org/browse/SUREFIRE-833 > Project: Maven Surefire > Issue Type: Improvement > Components: Junit 4.x support > Affects Versions: 2.12 > Reporter: Jan Goyvaerts > Fix For: 2.15 > > Attachments: SUREFIRE-833-spraguep-2.patch, > SUREFIRE-833-spraguep.patch > > > The current implementation of Surefire seems to look for explicit @Category > annotations in the test classes. And will only consider those. Suppose I'd > like to add a more concise annotation for this: > @Category(IntegrationTests.class) <== JUnit @Category > @Target({ElementType.TYPE}) > @Retention(RetentionPolicy.RUNTIME) > @Documented > public @interface IntegrationTest {} > Annotating my test class with @IntegrationTest does not work. Although I > think it looks much better than repeating everywhere in my code > "@Category(com.foo.bar.IntegrationTests.class)". For which I add an > additional dependency in the interface class btw. -- 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