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

Tibor Digana commented on SUREFIRE-329:
---------------------------------------

If we update the JUnit Categories, you don't have to fix this in surefire, 
because the user may use these two props.
One way or another the junit would have to be touched anyway, even after a fix 
in surefire.
IMHO no big change for a user to specify two properties in the Maven Surefire 
or the group.
I have already informed the JUnit group about my fix, so i am just awaiting 
their answer now.
Anyway if you fix the group in surefire then the documentation would have to be 
updated into new version and the backward compatibility must be guaranteed 
against JUnit and TestNG.

In my fix of JUnit 4 an intersection between s/w categories and those 
configurable categories specified by Maven is performed to a narrow set of 
categories.
I guess that the latest version 4.9.x makes only sense to integrate new changes.

> Support for JUNIT extensions
> ----------------------------
>
>                 Key: SUREFIRE-329
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-329
>             Project: Maven Surefire
>          Issue Type: Wish
>          Components: Junit 4.x support
>            Reporter: Anuj Kathuria
>            Assignee: Kristian Rosenvold
>             Fix For: Backlog
>
>         Attachments: surefire-329.txt, surefire-329.txt
>
>
> Is there any plan to support using JUNIT extensions such as 
> @Category,@PreRequisite with Maven2 SureFire plugin?
> The JUNIT EXTENSION URL:
> http://www.junitext.org/
> We would like to specify the categories to run via a configurable option in 
> the maven surefire plugin that supports JUNIT extensions
> See example Java Code: The following runs only tests with Category - Z.
>          //In JUnit4
>         JUnitCore core = new JUnitCore();
>         // use for categories special listener, give some statistics
>         core.addListener(new CategoryTextListener(System.out));
>         Request req = Request.aClass(SpcfXXXXTest.class);
>         core.run(req.filterWith(new CategoryFilter("Z")));

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

        

Reply via email to