alfonso-presa / soft-assert

Accumulate and delay assertion errors for any assertion library for later failure
MIT License
11 stars 1 forks source link

Fix Blocking issue -- flush method when there is only one failure #2

Closed gkushang closed 3 years ago

gkushang commented 3 years ago

Issue:

When there is only 1 failure, the next scenarios also fails for the same reason, because the captured[] array does not get empty for 1 failure in the flush metho

Solution:

It should empty the captured[] array when there is only one failure

gkushang commented 3 years ago

@alfonso-presa Can you take a look at this urgent fix and publish if it's good. Thank you for this library!

~Kushang

alfonso-presa commented 3 years ago

Merged and published as v0.6.0! Thank you very much

gkushang commented 3 years ago

Great, thanks for the quick action!