tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Baptista (JIRA)" <>
Subject [jira] [Work started] (TOMEE-2176) Arquillian test cannot be run in parallel
Date Tue, 11 Dec 2018 10:46:00 GMT


Work on TOMEE-2176 started by Bruno Baptista.
> Arquillian test cannot be run in parallel
> -----------------------------------------
>                 Key: TOMEE-2176
>                 URL:
>             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("") + "/arquillian-apache-tomee"}} and/or
> {{appWorkingDir = System.getProperty("") + "/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

View raw message