[
https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mario Krautz updated SUREFIRE-834:
----------------------------------
Attachment: bugexample.zip
now the test project is added as zip
> Groups are ignored if test are executed in parallel mode
> --------------------------------------------------------
>
> Key: SUREFIRE-834
> URL: https://jira.codehaus.org/browse/SUREFIRE-834
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support, Junit 4.x support
> Affects Versions: 2.12
> Environment: Linux 3.0.0-15-generic #26-Ubuntu SMP x86_64 x86_64
> x86_64 GNU/Linux
> Junit 4.10
> Reporter: Mario Krautz
> Attachments: bugexample.zip, test-playground.tar.gz,
> test-playground.tar.gz
>
>
> Hi!
> We have a maven-project containing multiple modules. Our junit tests are
> annotated with categories (@Category annotation). If we start the test with:
> {code}mvn clean verify -Dgroups=org.example.MyCategory{code}
> everything works as expected (only MyCategory-annotated tests are executed).
> But in parallel mode *all* tests are executed!
> I have attached an example project to demonstrate the bug.
> When executing:
> {code}mvn clean verify -Dgroups=org.example.MyCategory{code}
> two test are executed.
> When executing:
> {code}mvn clean verify -Dgroups=org.example.MyCategory -Pparallel{code}
> four tests are executed.
> The parallel profile looks like this:
> {code}
> <profile>
> <id>parallel</id>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-failsafe-plugin</artifactId>
> <version>2.12</version>
> <configuration>
> <parallel>methods</parallel>
> <threadCount>2</threadCount>
> <perCoreThreadCount>false</perCoreThreadCount>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </profile>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira