Ask a Question

-- 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. 

4 REPLIES 4

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

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

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.

 

Camo
Occasional Contributor

Thanks a lot.  

cancel
Showing results for 
Search instead for 
Did you mean: