maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Meilinger (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (SUREFIRE-706) Global lock to serialize tests even if maven runs in parallel mode
Date Mon, 28 Feb 2011 15:11:24 GMT
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

        

Mime
View raw message