How to automatically execute cucumber rerun.txt?

I am using maven, cucumber with cucumber JVM parallel plugin. After execution, it generates the rerun.txt file of failure scenarios. How I can execute this file automatically once the execution is completed.

Add Comment
  • 1 Answer(s)

    cucumber already has a built-in retry method “cucumber -q –retry 2”.  2 is the number of retries it will run a test spec after the first failure.  Of course if it passes the second time, it won’t run the additional time.  You can change 2 to 3 if you want.

    However if your test is flaky, you’d want to fix that.

    Default Answered on July 24, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.