maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-862) excludedGroups property does not work with JUnit
Date Fri, 06 Feb 2015 09:50:18 GMT

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

Tibor Digana commented on SUREFIRE-862:
---------------------------------------

I have tested excludedGroups with 2.18.1 which works for me as expected.
This means my test class is annotated with @Category({SlowTest.class, SingleThreadTest.class})
and 
<excludedGroups>pkg.SlowTest,pkg.SingleThreadTest</excludedGroups>, and the test
was not executed, and other categories were executed e.g. @Category(FastTest.class).

> excludedGroups property does not work with JUnit
> ------------------------------------------------
>
>                 Key: SUREFIRE-862
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-862
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.12
>         Environment: Windows, Maven 3.0.3
>            Reporter: Rene Grohmann
>            Assignee: Kristian Rosenvold
>             Fix For: 2.12.3
>
>
> If i use the groups property in my maven configuration everything works how expected.
The plugin only selects the tests with the specific category. On the other Hand, if i use
the excludedGroups property the plugin could not find any tests to run.
> <plugin>
>   <artifactId>maven-surefire-plugin</artifactId>
>   <version>2.11</version>
>   <dependencies>
>     <dependency>
> 	<groupId>org.apache.maven.surefire</groupId>
>         <artifactId>surefire-junit47</artifactId>
>         <version>2.12</version>
>     </dependency>
>   </dependencies>
>   <configuration>							
>     <excludedGroups>de.test.junit.categories.IntegrationTest</excludedGroups>
>   </configuration>
> </plugin>



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message