Bug 64564 - JUnitLauncher Task should support @ParameterizedTest (custom display name)
Summary: JUnitLauncher Task should support @ParameterizedTest (custom display name)
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.10.8
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2020-06-28 17:16 UTC by Simon.Legner
Modified: 2020-09-29 21:42 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Simon.Legner 2020-06-28 17:16:18 UTC
Follow-up of Bug 63680.

The @ParameterizedTest annotation allows to specify a custom naming rule for the tests. Ant's JUnitLauncher should respect this configuration.

Javadoc of @ParameterizedTest: https://junit.org/junit5/docs/5.3.0/api/org/junit/jupiter/params/ParameterizedTest.html#name()
Tutorial + sample code: https://www.baeldung.com/parameterized-tests-junit-5#display-name
Relevant for JOSM's integration tests: https://josm.openstreetmap.de/ticket/16567#comment:50
Comment 1 Vincent Privat 2020-09-29 21:42:15 UTC
There is a GitHub PR that should fix this bug: https://github.com/apache/ant/pull/121