You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2015/06/22 02:26:00 UTC

[jira] [Closed] (SUREFIRE-706) Global lock to serialize tests even if maven runs in parallel mode

     [ https://issues.apache.org/jira/browse/SUREFIRE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana closed SUREFIRE-706.
---------------------------------
    Resolution: Won't Fix

Surefire has no notion about other modules running in parallel.
This is probably Maven core issue.

> Global lock to serialize tests even if maven runs in parallel mode
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-706
>                 URL: https://issues.apache.org/jira/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 was sent by Atlassian JIRA
(v6.3.4#6332)