You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mario Krautz (JIRA)" <ji...@codehaus.org> on 2012/02/13 10:23:02 UTC
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Mario Krautz created SUREFIRE-834:
-------------------------------------
Summary: 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: 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Krautz updated SUREFIRE-834:
----------------------------------
Attachment: test-playground.tar.gz
attachment uploaded again, first version cannot be opened after download;(
> 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: 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Krautz updated SUREFIRE-834:
----------------------------------
Attachment: surefire834_integrationtest.patch
integration test to verify wrong behaviour
> 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, surefire834_integrationtest.patch, 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Krautz closed SUREFIRE-834.
---------------------------------
Resolution: Fixed
> 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, surefire834_integrationtest.patch, 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-834:
----------------------------------------
Fix Version/s: 2.12.1
> 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
> Fix For: 2.12.1
>
> Attachments: bugexample.zip, surefire834_integrationtest.patch, 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308520#comment-308520 ]
Mario Krautz commented on SUREFIRE-834:
---------------------------------------
After retest I can announce, that it was already fixed with 2.12.1
> 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, surefire834_integrationtest.patch, 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] (SUREFIRE-834) Groups are ignored if test are executed in
parallel mode
Posted by "Mario Krautz (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308508#comment-308508 ]
Mario Krautz commented on SUREFIRE-834:
---------------------------------------
I've seen, that the bug is fixed within failsafe-2.13-SNAPSHOT - it can be verified by the integration test I've added as patch.
> 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, surefire834_integrationtest.patch, 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