github-workflows-kt icon indicating copy to clipboard operation
github-workflows-kt copied to clipboard

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

Open jmfayard opened this issue 2 years ago • 1 comments

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 avatar Feb 19 '22 17:02 jmfayard

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.

krzema12 avatar Feb 19 '22 20:02 krzema12