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

See all validation errors at once with something liike assertsSoftly { ... } #97

Open
jmfayard opened this issue Feb 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jmfayard
Copy link
Contributor

jmfayard commented Feb 19, 2022

What feature do you need?

From https://kotest.io/docs/assertions/soft-assertions.html:

Normally, assertions like shouldBe throw an exception when they fail. But sometimes you want to perform multiple assertions in a test, and would like to see all of the assertions that failed. Kotest provides the assertSoftly function for this purpose.

assertSoftly {
  foo shouldBe bar
  foo should contain(baz)
}

It would be nice to have something like assertSoftly inside the workflow() function
so that we could see all validation errors for the workflow at once,
instead of having to do a compilation-run cycle for each one.

@jmfayard jmfayard added the enhancement New feature or request label Feb 19, 2022
@krzema12
Copy link
Member

krzema12 commented Feb 19, 2022

Good idea! I'm just after implementing #1 which doesn't produce an exhaustive list of validation errors, but still provides some added value. This task is a nice follow-up after that.

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

2 participants