Before and BeforeSuite don't retry
See original GitHub issueWhat 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Before and BeforeSuite don't retry · Issue #2019
When a test step fails which is inside Before or BeforeSuite , Before or BeforeSuite don't retry. Details. CodeceptJS version: 2.3.1; NodeJS ...
Read more >Using @BeforeSuite and @AfterSuite
The @BeforeSuite starts the Selenium RC driver instance, sets the speed and logs in. The @AfterSuite logs out & shuts down. Other test...
Read more >TestNG Annotations - Benefits, Hierarchy & TestNG Test ...
In TestNG, there are ten types of annotations: @BeforeSuite - The @BeforeSuite method in TestNG runs before the execution of all other test ......
Read more >Getting Started | CodeceptJS
Use the retry() function before an action to ask CodeceptJS to retry it ... but BeforeSuite/AfterSuite don't have any access to the browser, ......
Read more >Can we make sure @beforesuite gets called before ...
Assuming you are creating your test_data_set correctly you can achieve your second point like this @Test(dataProvider="dp_dummy" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pablopaul I didn’t try with the latest CodeceptJS. I’ll try it, let you know 👍
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