Search code examples
cucumber-jvmcucumber-junitcucumber-serenity

If one scenario fails continue with next Scenario in a cucumber feature file


How can I continue running a feature on failure of 1 scenario to next?

Currently if first Scenario fails out of 10 (lets say) next 9 will not execute and it quits current session on driver/browser (WebDriver).

I am using Cucumber with Java, Junit, Serenity on Windows 7.


Solution

  • After updating all dependencies, plugins in pom.xml to their latest versions, fixed the issue.

    Specially -

    maven-surefire-plugin, maven-failsafe-plugin, maven-compiler-plugin