How to Rerun failed scenario automatically using cucumber rerun #2175
Replies: 2 comments 3 replies
-
Which flavour of cucumber. There is the inbuilt retry logic in some flavours of cucumber |
Beta Was this translation helpful? Give feedback.
-
It depends. If you're running your classes through and IDE it is not possible. Unless you can configure your IDE to run multiple classes. Otherwise you can configure Maven or Gradle with multiple test executions. Or with a single execution where the runner runs before the rerunner. Finally, if you want to have full control, you could use the JUnit 5 Platform Launcher API in combination with the Cucumber JUnit Platform Engine to execute your test programmatically. |
Beta Was this translation helpful? Give feedback.
-
As we know when any feature file failed we are storing in a text file. To run that failed.txt file we are using 2nd runner file. If we run second runner file it is executing the failed one only.
Is there any way after completion of first runner it will trigger second runner file to run failed one automatically
Beta Was this translation helpful? Give feedback.
All reactions