You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
What feature do you need?
From https://kotest.io/docs/assertions/soft-assertions.html:
It would be nice to have something like
assertSoftly
inside theworkflow()
functionso that we could see all validation errors for the workflow at once,
instead of having to do a compilation-run cycle for each one.
The text was updated successfully, but these errors were encountered: