strikt icon indicating copy to clipboard operation
strikt copied to clipboard

Report skipped assertions

Open robfletcher opened this issue 7 years ago • 2 comments

If an assertion is not evaluated because the chain before it broke it would be nice to see that in the output.

robfletcher avatar May 02 '18 01:05 robfletcher

I think that this one is actually quite important. In fact, the cases where the assertion fails are way more important to print to the console than the cases where it succeeded.

I didn't look to deep into the code base, but I guess to make this happen you would need some sort of Abstract Syntax Tree for the compound assertion?

MartinHaeusler avatar May 14 '20 09:05 MartinHaeusler

We are using this library for a couple of months. The main point is output for soft assertions, which I personally admire. One drawback of assertion output is when one assertion fails between 20-30 that have been passed. It isn't easy to find it in CI/CD server log or IDE console etc. Very nice feature would be the possibility to print out only the failed one.

Any suggestion or the possibility of implementing something similar in the near future.

Thanks

aleksandar78 avatar Oct 01 '21 16:10 aleksandar78