Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Scenario passed but event.test.failed emitted #4285

Unanswered
incoming-th asked this question in Q&A
Discussion options

Hi,

This is a bit of a complex situation and I am struggling for 3 days now so asking for help.

I have 1 suite with 2 scenarios that when running without -p pauseOnFail have no issue, but when using it the interactive shell started and Scenario 2 does not run, even if Scenario 1 passes.

I run in debug and verbose to get some clue and here is what I found, the event.test.failed seems to be triggered after Scenario 1 passed:

image

Running the above with DEBUG=codeceptjs:* npx codeceptjs run --steps -p pauseOnFail --verbose

Not quite sure what could be the cause, my quest so far could be that the use of pages + fragments + tryTo() may impact the event for false negative. Also again, running with only npx codeceptjs run works perfectly which is weird.

Thanks for any guidance on how to fix this.

You must be logged in to vote

Replies: 1 comment

Comment options

I believe the event.test.failed is always triggered before each run, I tried to look at the object and all steps were passed, so this may not be the root cause.

But I still don't understand why the interactive shell started just after Scenario 1 passed. I don't have pause() in the Scenario 2.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /