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

junit5 support? #94

Huluvu424242 opened this issue Oct 9, 2016 · 4 comments

junit5 support? #94

Huluvu424242 opened this issue Oct 9, 2016 · 4 comments


Copy link

Huluvu424242 commented Oct 9, 2016

Hello, is there a way to reallize parameterized tests with JUnitParams at junit 5?

Copy link

ledoyen commented Feb 21, 2017


An issue already exists for parameterized tests support in JUnit5 project

It is apparently waiting for @testtemplate to be merged :

Copy link

woprzech commented Apr 8, 2017

After last milestone JUnit5 supports parametrized tests :

@woprzech woprzech closed this as completed Apr 8, 2017
Copy link

kibertoad commented Jul 19, 2017

JUnit 5 parametrized tests are terrible, you cannot have parameter pairs (e. g. to specify both input and asserted value) without boilerplate code in the form of provider method.

It's not a good replacement for JUnitParams, so we still need a JUnit 5-compatible version of them.

Copy link

ledoyen commented Jul 19, 2017

JUnit5 parameterized tests provides a pretty simple solution to give parameter tuples by annotation:

@DisplayName("Display name of container")
@ParameterizedTest(name = "{index} ==> first=''{0}'', second={1}")
@CsvSource({ "foo, 1", "bar, 2", "'baz, qux', 3" })
void testWithCustomDisplayNames(String first, int second) {

heldev added a commit to akullpp/awesome-java that referenced this issue Oct 3, 2019
JUnit 5 support parametrization and it seems maintainers aren't going to update the project Pragmatists/JUnitParams#94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

4 participants