Can't generate cucumber reports after stop cypress runner

291 Views Asked by At

I am using Cypress + Cucumber. Trying to fail test and skip steps if one of the failed. For this, I'm using the following code:

afterEach(function () {
    if (this.currentTest.state === 'failed') {
        Cypress.runner.stop()
    }
});

But if I use this and test failed I don't receive any reports in cucumber-json folder. Maybe someone has a solution for this?

0

There are 0 best solutions below