Running t.FailNow()
in Assess does not fail the following assess
#386
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened?
When running tests without the
fail-fast
flag, ift.FailNow()
is called, the following assess will still run. I think this is an error because callingFailNow
means that the test has failed and there is no point continuing.What did you expect to happen?
I expect the feature being tested to not run all the following assess when 1 of them fails with
FailNow
.I know this can be achieved with
-fail-fast
, however, I have 2 issues with it:FailNow
andFail
put the decision in the hand of the test writer who probably knows better when the feature should stop running.-fail-fast
, it will also fail the other features of the test. In some cases, features might be separate enough that a failure in one won't impact the others in which case it is not wanted to fail all of them.How can we reproduce it (as minimally and precisely as possible)?
Example code:
Result:
Anything elese we need to know?
I took a look at the code and it should be fairly easy to fix by catching if
FailNow
was called around here. I can submit a PR if that is okE2E Provider Used
kind
e2e-framework
Versionv0.3.0
OS version
The text was updated successfully, but these errors were encountered: