You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/11 10:04:01 UTC

[jira] [Commented] (TOMEE-2176) Arquillian test cannot be run in parallel

    [ https://issues.apache.org/jira/browse/TOMEE-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16716734#comment-16716734 ] 

ASF GitHub Bot commented on TOMEE-2176:
---------------------------------------

GitHub user brunobat opened a pull request:

    https://github.com/apache/tomee/pull/268

    [Work in Progress] TOMEE-2176  - Arquillian test cannot be run in parallel

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/brunobat/tomee fix-parallel-test-execution

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tomee/pull/268.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #268
    
----

----


> Arquillian test cannot be run in parallel
> -----------------------------------------
>
>                 Key: TOMEE-2176
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2176
>             Project: TomEE
>          Issue Type: Improvement
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 7.0.3
>            Reporter: Thorsten Meinl
>            Assignee: Bruno Baptista
>            Priority: Major
>              Labels: pull-request-available
>
> In order to speed up tests, I wanted to run them in parallel using Maven Surefire's parallel execution capabilities. But even when running every test class in its own forked VM tests were failing randomly, mostly due to missing files in the temporary container directory. The reason is that all temporary containers will use the same directory, which is
> {{dir = System.getProperty("java.io.tmpdir") + "/arquillian-apache-tomee"}} and/or
> {{appWorkingDir = System.getProperty("java.io.tmpdir") + "/arquillian-tomee-app-working-dir}}
> (see {{org.apache.openejb.arquillian.common.TomEEConfiguration}}).
> This means different processes running TomEE via Arquillian will interfere with each other, even completely independent process and even from different users.
> As a solution the above-mention directories must be created such that they are unique for the process, e.g. by using {{java.nio.Files.createTempDirectory}}.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)