javierbrea / cypress-fail-fast

A Cypress plugin to skip tests on first failure.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not log "Enabling skip mode" in every failed test

javierbrea opened this issue · comments

Originally reported by @josefsmrz in a comment in #186:

I am currently testing it in our project and I've noticed these messages:
[fail-fast] Enabling skip mode
appear after every failed test. Perhaps this could be replaced by a message counting the number of failed tests so far, something like:
[fail-fast] Failed tests: x/y

To Reproduce
When BAIL option is used, the skip mode might not be enabled in first failing tests, but the message is displayed each time a test fails.

Expected behavior
Do not log "Enabling skip mode" until the plugin actually enables the skip mode. If a test fails but the bail limit is not reached, then log the number of failed tests and the bail limit: [fail-fast] Failed tests: x/y

Released in v3.4.1