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

Confidence Engine and Parametrized Tests #119

Open
dmfs opened this issue Oct 4, 2023 · 1 comment
Open

Confidence Engine and Parametrized Tests #119

dmfs opened this issue Oct 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dmfs
Copy link
Collaborator

dmfs commented Oct 4, 2023

Often times test cases are quite similar and only differ in the data that's provided for the different use cases. Using the Confidence Engine you currently have to write one assertion for each case. As a developer I want a more efficient way to write those test cases, just like the Jupiter engine provides it.

@dmfs dmfs added the enhancement New feature or request label Oct 4, 2023
@dmfs
Copy link
Collaborator Author

dmfs commented Oct 5, 2023

A first version for exactly one parameter could look like this:

Assertion assertion = parametrized(new Seq<>("foo", "bar", "baz"),
    param -> assertionThat(...));

technically, each of those parameters should result in a separate assertion/test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant