Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

junitlauncher - Added fork mode support #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azotcsit
Copy link
Contributor

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

  1. Added node attribute to fork element
  2. Added logic to spin a JVM per test suite class into JUnitLauncherTask
  3. Updated tests and documentation

I'm not sure JUnitLauncherTaskTest is run during ./build clean test, hence the test might be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant