Bug 65176 - Introduce forkmode in JUnitLauncher task
Summary: Introduce forkmode in JUnitLauncher task
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.10.8
Hardware: PC Mac OS X 10.1
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2021-03-09 11:11 UTC by Allan Francani
Modified: 2021-03-09 11:11 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Allan Francani 2021-03-09 11:11:42 UTC
I recently tried to upgrade from JUnit 4 to 5 in a Java project that uses Ant to run tests for CI.

The project has many legacy classes with static attributes, so the tests rely on the forkmode="perTest" attribute of the JUnit task to isolate the context for each test class.

The migrating to JUnit 5 involves the use of the new JUnitLauncher task, which has no forkmode and therefore prevents us from migrating.

Is there a plan to implement the forkmode attribute for the JUnitLauncher task?