Before and BeforeSuite don't retry
What are you trying to achieve?
I want the Before, BeforeSuite to retry when a step inside Before or BeforeSuite fails
What do you get instead?
When a test step fails which is inside Before or BeforeSuite, Before or BeforeSuite don't retry.
Details
- CodeceptJS version: 2.3.1
- NodeJS Version: >=8.12.0
- Operating System: Linux, MacOS
- Puppeteer
@ufko Do you get the same result with latest CodeceptJS version 2.3.5 ?
@pablopaul I didn't try with the latest CodeceptJS. I'll try it, let you know 👍
Hi, @pablopaul I tried with latest CodeceptJS 2.3.5 and they didn't retry
This is not working for me either
Hi @pablopaul if you have any idea how to fix this could you point me in that direction? I'd love to work on this and hopefully fix it
I have the same issue with codeceptjs 3.0.6
Running codeceptjs 3.3.0 and have the same issue. Any ideas on a timeframe for this being worked on?
Example:
Feature('My Feature Name').retry(1);
Before(async ({ I, login }) => {
{some code}
});
If anything fails in the Before, the retry doesn't happen. But if anything fails in any of the Scenario() sections it does the retry.
At this moment I recommend using retryTo plugin to handle cases like this
https://codecept.io/plugins/#retryto
Probably in future versions we will add retries for Before/BeforeSuite as well