Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting retry config via AbstractProjectConfig #3967

Open
pshevche opened this issue Apr 7, 2024 · 3 comments
Open

Support setting retry config via AbstractProjectConfig #3967

pshevche opened this issue Apr 7, 2024 · 3 comments
Labels
assertions 🔍 Related to the assertion mechanisms within the testing framework. enhancement ✨ Suggestions for adding new features or improving existing ones.

Comments

@pshevche
Copy link

pshevche commented Apr 7, 2024

Summary

Having the retry(RetryConfig) function is nice, but ideally, I'd like to set the same retry configuration for every single test case in the spec or project. All of my tests are prone to the same infrastructure issue, and should all be retried. Using the retry function in every single one of them adds a lot of boilerplate. Is there a recommended way to set retries globally? I played around with a TestCaseExtension to re-run tests multiple times if the result is failed, but the reporting is a bit odd because intermediate executions are reported as pending.

Thank you for a great framework, and looking forward to your reply!

@pshevche
Copy link
Author

pshevche commented Apr 7, 2024

If you feel like this could be a fun issue to contribute on, let me know, I'd be happy to take it on.

@sksamuel
Copy link
Member

Yeah please raise a PR. Good idea!

@Kantis Kantis added enhancement ✨ Suggestions for adding new features or improving existing ones. assertions 🔍 Related to the assertion mechanisms within the testing framework. labels May 8, 2024
@Kantis
Copy link
Member

Kantis commented May 8, 2024

I think you could take some inspiration from how this is done for eventually, here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assertions 🔍 Related to the assertion mechanisms within the testing framework. enhancement ✨ Suggestions for adding new features or improving existing ones.
Projects
None yet
Development

No branches or pull requests

3 participants