Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

support retry #6

Open
charlierudolph opened this issue Apr 23, 2018 · 1 comment
Open

support retry #6

charlierudolph opened this issue Apr 23, 2018 · 1 comment

Comments

@charlierudolph
Copy link
Contributor

Support retry (which in Cucumber-Ruby is implemented in the filter pipeline)

@brasmusson @mattwynne can you please give more detail or tag someone who can?

@mattwynne
Copy link

mattwynne commented Apr 24, 2018

The retry feature in cucumber-ruby uses two extension points. Filters (which I described in #5) and events.

Here's the filter for retry: https://github.com/cucumber/cucumber-ruby/blob/master/lib/cucumber/filters/retry.rb

The filter (which sits on the chain between the compiler and the runner) listens for the test_case_finished event and, if the test case failed, pumps it down the chain and into the runner again.

Bear in mind that everything is synchronous / single-threaded in cucumber-ruby, which is why this works.

It makes some of the old formatters, which weren't written with this in mind, go pretty crazy!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants