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

Kristian Rosenvold commented on SUREFIRE-329:
---------------------------------------------

Fixed in r1199853, thanks for the patches !

@nkeywal I only applied some of your changes; this was a big patch and it was 
quite complex. Your patch covered various topics and I would appreciate it if 
you create individual issues/patches. There are other open issues relating to 
stdout/stderr logging, for 2.10 so this will be fixed in that context. As for 
the exclude stuff, if it does not work to satisfaction, please resubmit patch 
with testcase. I tried to standardize on one spelling of "excludedgroups", 
unsure why there needs to be two different properties.

To make a testcase you can adapt/modify the test project in 
surefire-integration-tests/src/test/resources/junit48-categories and add test 
cases to JUnit48TestCategoriesIT 

> 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: SUREFIRE329_branch329.patch, 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