-
Notifications
You must be signed in to change notification settings - Fork 51
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
Feature request: ability to set maxRetries at test class and method level #293
Comments
Could you please elaborate on that? In that case, I don't see how a test-specific I think, the request makes sense, but I just want to confirm that we are not missing some underlying issue. |
Yeah sorry what I meant by this is that, if we increase the number of maxRetries then it will mean that all the failed tests will be retried with higher retry count. Lets say I have a You are right that if we increase the maxRetries at class level, it would then mean retrying of the entire class which could possibly contain multiple test methods. that is why i suggested to have a more better control to filter and set maxRetries at method level. I am not sure if this is possible to apply maxRetries filter at method level. In any case, test class/method specific maxRetries would help us to specify customised number of maxRetries for our common cases which will then only run that filtered class/method with custom maxRetries instead of changing the retry count for all the failed tests. In other way, this would also be helpful if we do not want to retry a specific test class/method on failure so we can then set the maxRetries count for that specific test to zero. |
I understand; thank you for clarifying this. This makes sense to me, and we will consider this request when we plan the next feature release of the plugin. |
Hi,
Currently i am using this plugin to retry flaky tests, however I have run into a scenario where i would like to set a custom maxRetries for some specific test class/method to have a different number than the number that gets applied to whole test suite.
This is crucial for our use case, because increasing the number of maxRetries at suite level will mean that all the tests will be retried and this is what we do not want as it can cause unnecessary retries for other tests.
If it is not possible with the current setup, could you please add this feature to allow users to pass different number of maxRetries to some test methods so that i can run a particular test class/method to either have more or less maxRetries than the default ones? Perhaps it is possible to have this functionality to allow passing maxRerites in filter or classRetry as
Thank you.
The text was updated successfully, but these errors were encountered: