When is cartesian product supported? #3088
|
Dear Junit community, I am missing the feature Thanks in advance for the answers! Pierre |
Replies: 1 comment
|
As of JUnit 6.1.3, Cartesian-product parameterization has not been integrated into JUnit Jupiter, and there is no announced integration date. The current JUnit Pioneer API is @CartesianTest
void test(
@CartesianTest.Values(ints = {1, 2}) int x,
@CartesianTest.Values(strings = {"A", "B"}) String value) {
// executed for all 4 combinations
}So JUnit Pioneer remains the straightforward solution today. One version-related detail: older Pioneer versions used If you prefer not to depend on Pioneer, standard Jupiter can also do it with: @ParameterizedTest
@MethodSource("arguments")
void test(int x, String value) {
...
}where the So there is still no native Jupiter annotation equivalent to Pioneer's Please mark this answer as accepted if it helped, thank you. |
Hi @pjljvandelaar
As of JUnit 6.1.3, Cartesian-product parameterization has not been integrated into JUnit Jupiter, and there is no announced integration date.
The current JUnit Pioneer API is
@CartesianTest, for example:So JUnit Pioneer remains the straightforward solution today.
One version-related detail: older Pioneer versions used
@CartesianProductTest. That API was deprecated and subsequently removed; the current API is@CartesianTest.If you prefer not to depend on Pioneer, standard Jupiter can al…