-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add assertAll? #29
Comments
You can do: where isFoo, isBar and isBar are matchers. |
I can imagine an API like...
Or maybe some DSL-ish syntactic sugar:
But that API would only have a dependency on opentest4j (for MultipleFailuresError) and not directly on HamKrest. |
This is now part of JUnit 5 and will be available in release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This might be outside of the scope of this assertion library but a kotlin friendly way of declaring multiple assertions in a single test would be nice to add.
I'm opening this issue due to the discussion in the Junit5:
junit-team/junit5#924
Is this outside the scope of this project? If not, this method should probably throw the
org.opentest4j.MultipleFailuresError
which would require creating a dependency onopentest4j
The text was updated successfully, but these errors were encountered: