You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by GitBox <gi...@apache.org> on 2021/12/22 13:58:58 UTC

[GitHub] [ant] azotcsit opened a new pull request #174: junitlauncher - Added fork mode support

azotcsit opened a new pull request #174:
URL: https://github.com/apache/ant/pull/174


   ### 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](https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java#L185) 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.**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org