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

Use Named.of to describe parameterized tests input #2801

Merged
merged 1 commit into from Oct 4, 2021

Conversation

simonbasle
Copy link
Member

This commit replaces various patterns introduced to pass arguments to
parameterized tests with a meaningful description of some sort (eg. a
String type extra parameter, or Object[][] arrangements).

The Arguments and Named classes can be leveraged to provide a meaningful
description to a parameter other than its toString, while using the
{argumentsWithNames} placeholder in the test description itself.

Fixes #2788.

This commit replaces various patterns introduced to pass arguments to
parameterized tests with a meaningful description of some sort (eg. a
`String type` extra parameter, or Object[][] arrangements).

The Arguments and Named classes can be leveraged to provide a meaningful
description to a parameter other than its toString, while using the
`{argumentsWithNames}` placeholder in the test description itself.

Fixes #2788.
@simonbasle simonbasle requested a review from a team as a code owner October 4, 2021 09:59
@simonbasle simonbasle added this to the 3.4.11 milestone Oct 4, 2021
@simonbasle simonbasle added the type/chores A task not related to code (build, formatting, process, ...) label Oct 4, 2021
@simonbasle simonbasle self-assigned this Oct 4, 2021
@simonbasle simonbasle requested a review from a team October 4, 2021 09:59
@simonbasle simonbasle merged commit 3dfebb5 into main Oct 4, 2021
@simonbasle simonbasle deleted the 2788-junitNamedOf branch October 4, 2021 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/chores A task not related to code (build, formatting, process, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With JUnit 5.8, use Named.of as input to some parameterized tests
2 participants