ant
ant copied to clipboard
junitlauncher - Added fork mode support
Context
I'm working on migration of Cassandra to JUnit5 (https://issues.apache.org/jira/browse/CASSANDRA-16630). Our test running code is heavily customized and relies onto forkMode property. Unfortunately, junitlauncher task does not have any equivalent. The purpose of this change is to introduce a way to run tests independently (in separate JVMs).
Behavior
This PR does not change any existing behavior. By default, the tests will be run in the same forked JVM (aka mode="once").
Summary of the changes
- Added
nodeattribute toforkelement - Added logic to spin a JVM per test suite class into
JUnitLauncherTask - Updated tests and documentation
I'm not sure JUnitLauncherTaskTest is run during ./build clean test, hence the test might be broken.