You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this plugin enabled with my Cypress 11.2.0 suite. We also use Cucumber for our tests so we have the cypress-cucumber-preprocessor plugin enabled as well. Due to some current constraints in our project, we cannot use test isolation and thus need to "fail fast" when a scenario fails in a feature file. Thus, we try to accomplish this with the following Cucumber hook:
const{Before}=require("@badeball/cypress-cucumber-preprocessor");Before(function(){constsuite=cy.state('test').parent;if(suite.tests.some(test=>test.state==='failed')){cy.log('Failing fast, so all scenarios will be skipped');this.skip();}})
I've noticed that calling this.skip() anywhere in the tests, like above, will cause the Cypress runner to hang indefinitely. It will first skip the next scenario, and then be unable to execute any more commands. The runner will need to be manually shut down. I've discovered that by removing the cypress-failed-log plugin, tests can be skipped without any issue, but this plugin basically breaks Cypress when trying to skip a test.
The text was updated successfully, but these errors were encountered:
I have this plugin enabled with my Cypress 11.2.0 suite. We also use Cucumber for our tests so we have the cypress-cucumber-preprocessor plugin enabled as well. Due to some current constraints in our project, we cannot use test isolation and thus need to "fail fast" when a scenario fails in a feature file. Thus, we try to accomplish this with the following Cucumber hook:
I've noticed that calling
this.skip()
anywhere in the tests, like above, will cause the Cypress runner to hang indefinitely. It will first skip the next scenario, and then be unable to execute any more commands. The runner will need to be manually shut down. I've discovered that by removing thecypress-failed-log
plugin, tests can be skipped without any issue, but this plugin basically breaks Cypress when trying to skip a test.The text was updated successfully, but these errors were encountered: