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

Combine annotations Source annotations to create cartesian product #3861

Closed
throwable-one opened this issue Jun 14, 2024 · 2 comments
Closed

Comments

@throwable-one
Copy link

There is no easy and clean way to implement something like


enum class OS {
    Windows,
    Linux
}

enum class Arch {
    X86_64,
    AA64
}


class MyTest {

    @ParameterizedTest
    @EnumSource(OS::class)
    @EnumSource(Arch::class)
    fun myTest(os:OS, arch: Arch) {

    }
}
@jbduncan
Copy link
Contributor

Hi @throwable-one - I believe this is a duplicate of #3063, which was closed, sadly.

I'm not aware of any plans from the JUnit team, but I believe junit-pioneer (which is unofficially endorsed by the JUnit team) and github.com/google/TestParameterInjector do exactly what you're looking for.

I hope this helps!

@marcphilipp
Copy link
Member

Duplicate of #3063

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants