cancel
Showing results for 
Search instead for 
Did you mean: 

-- rerun failed scenarios

SOLVED
Camo
Occasional Contributor

-- rerun failed scenarios

I found a lot of articles about rerun the failed tests but none of them satisfies my needs. The closest solution I found is  here. But I am not quite sure about this solution. Especially because of order and parallel runs.

 

I would like to rerun failed scenario immediately when it fails. So the first question is if it is possible. It sounds like clean straightforward use case but I cant not find any documentation to it. 

 

I found also this article which mention --retry flag but the link to documentation returnss error 521. So I would like to know where I could find something about --retry flag.

 

Thanks for any help I am little lost in it for now. 

Rerun failed scenario in cucumber using second runner classWatch this video for consolidate the two cucumber report into single report.--https://www.youtube...
1 ACCEPTED SOLUTION

Accepted Solutions

Re: -- rerun failed scenarios

Here's an issue in the cucumber-jvm repo: https://github.com/cucumber/cucumber-jvm/issues/1706

 

It seems there is a possibility using Surefire.

 

It also links to a PR which may have more info about that too.

 

View solution in original post

4 REPLIES 4

Re: -- rerun failed scenarios

Which version of cucumber are you using? Cucumber ruby? Cucumber-js? Cucumber JVM?

 

If you are using cucumber ruby, indeed the --retry flag may certainly help. You can find some documentation here: https://raw.githubusercontent.com/cucumber/cucumber-ruby/master/features/docs/cli/retry_failing_test...

 

For cucumber-js: https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#retry-failing-tests

 

 

Camo
Occasional Contributor

Re: -- rerun failed scenarios

I use cucumber-jvm. Is there an solution for me?

Re: -- rerun failed scenarios

Here's an issue in the cucumber-jvm repo: https://github.com/cucumber/cucumber-jvm/issues/1706

 

It seems there is a possibility using Surefire.

 

It also links to a PR which may have more info about that too.

 

View solution in original post

Camo
Occasional Contributor

Re: -- rerun failed scenarios

Thanks a lot.  

New Here?
Join us and watch the welcome video: