Christopher Smith created SUREFIRE-1149:
-------------------------------------------

             Summary: Tests from dependency jar ignore parallel execution
                 Key: SUREFIRE-1149
                 URL: https://jira.codehaus.org/browse/SUREFIRE-1149
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.7+ (parallel) support, Maven Failsafe Plugin, 
Maven Surefire Plugin, process forking
    Affects Versions: 2.18.1
            Reporter: Christopher Smith
         Attachments: pom.xml

I have a Selenium test suite that is contained in a module of my main 
application but that needs to be run against an instance deployed to a staging 
environment. I package the tests into a jar and have a separate POM that 
declares {{dependenciesToScan}} and is executed in a later CI step. The tests 
execute, but the runner completely ignores any parallel configuration: neither 
{{parallel}} nor {{forkCount}} has any effect. The debug log shows that the 
plugin is switching to parallel mode, but then it runs them serially in a 
single Java process. As these are browser-driving tests, serial execution 
drastically increases running time.

Running the tests directly from the main project tree using {{mvn 
failsafe:integration-test -DforkCount=3}} forks multiple JVMs and executes the 
tests in parallel.

The attached POM is the one used to execute the tests after deployment, and 
which ignores parallel execution for test from the jar.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to