Skip to content
Discussion options

You must be logged in to vote

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:

@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 @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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pjljvandelaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants