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

Closed
Huluvu424242 opened this issue Oct 9, 2016 · 4 comments
Closed

junit5 support? #94

Huluvu424242 opened this issue Oct 9, 2016 · 4 comments

Comments

@Huluvu424242
Copy link

Huluvu424242 commented Oct 9, 2016

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

@ledoyen
Copy link

ledoyen commented Feb 21, 2017

Hello,

An issue already exists for parameterized tests support in JUnit5 project
junit-team/junit5#14

It is apparently waiting for @testtemplate to be merged : https://github.com/junit-team/junit5/tree/issues/14-test-template

@woprzech
Copy link
Contributor

woprzech commented Apr 8, 2017

After last milestone JUnit5 supports parametrized tests :
http://junit.org/junit5/docs/current/user-guide/#writing-tests-parameterized-tests

@woprzech woprzech closed this as completed Apr 8, 2017
@kibertoad
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.

@ledoyen
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants