kuceb / cypress-plugin-retries

A Cypress plugin to retry failed tests.
MIT License
237 stars 20 forks source link

Option to retry after all hook #60

Closed GayathirideviVenkateswaran closed 4 years ago

GayathirideviVenkateswaran commented 4 years ago

Some times the savehar file task generation fails in after hook which makes entire test fails. It will be great to have retry on after all hook.

kuceb commented 4 years ago

I think the solution there should be to retry at the command level (which unfortunately is NOT easy to do for tasks/requests in Cypress at this time). Since after/before hooks are only designed to run once, it may be confusing to users to retry them.

So I think that is the solution - making individual cypress commands easier to retry.