Reputation: 999
I want to speed up my integration tests by running them in parallel. The configuration in maven-failsafe-plugin enables that, dividing all my tests among a number of parallel test runners, but my application puts various kinds of data in the working directory and the tests stomp on each other. How can I run each test/thread of tests in a separate directory?
If I could somehow set the working directory according to a system property of the test runner then surefire/failsafe offer a ${surefire.forkNumber}
placeholder that would seem the solution, but that's not expanded in the straightforward <workingDirectory>
property (instead all threads run tests in a directory literally named ${surefire.forkNumber}).
Upvotes: 0
Views: 513