You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frank Meilinger (JIRA)" <ji...@codehaus.org> on 2011/02/28 16:11:24 UTC
[jira] Created: (SUREFIRE-706) Global lock to serialize tests even
if maven runs in parallel mode
Global lock to serialize tests even if maven runs in parallel mode
------------------------------------------------------------------
Key: SUREFIRE-706
URL: http://jira.codehaus.org/browse/SUREFIRE-706
Project: Maven Surefire
Issue Type: Improvement
Components: Maven Surefire Plugin
Environment: all
Reporter: Frank Meilinger
It would be nice to serialize unit tests globally in the surefire plugin, even if maven 3 runs with parallel mode. I know that some test providers are able to do parallel testing itself (e.g. Junit47 provider) without running maven in parallel or not. These test provider parallel mode can be configured with surefire plugin configuration. E.g. <parallel>none</parallel> can be used to serialize unit tests even if using the JUnit47 provider. But when running maven 3 with -T <n> option, the tests are still running in parallel, depending on the parallel decision of maven 3. For code which is not able to run in parallel (while unit tests are running, this will happen), this is a problem. In this case the provider option <parallel>none</parallel> won't help. I think it would be great (and maybe easy to implement) to have a global surefire plugin option to globally lock the surefire plugin's execute() method to serialize all unit tests over all parallel maven builds.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-706) Global lock to serialize tests even
if maven runs in parallel mode
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-706:
----------------------------------------
Priority: Minor (was: Major)
> Global lock to serialize tests even if maven runs in parallel mode
> ------------------------------------------------------------------
>
> Key: SUREFIRE-706
> URL: http://jira.codehaus.org/browse/SUREFIRE-706
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Surefire Plugin
> Environment: all
> Reporter: Frank Meilinger
> Priority: Minor
>
> It would be nice to serialize unit tests globally in the surefire plugin, even if maven 3 runs with parallel mode. I know that some test providers are able to do parallel testing itself (e.g. Junit47 provider) without running maven in parallel or not. These test provider parallel mode can be configured with surefire plugin configuration. E.g. <parallel>none</parallel> can be used to serialize unit tests even if using the JUnit47 provider. But when running maven 3 with -T <n> option, the tests are still running in parallel, depending on the parallel decision of maven 3. For code which is not able to run in parallel (while unit tests are running, this will happen), this is a problem. In this case the provider option <parallel>none</parallel> won't help. I think it would be great (and maybe easy to implement) to have a global surefire plugin option to globally lock the surefire plugin's execute() method to serialize all unit tests over all parallel maven builds.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira