We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm curious to know if there's any built-in mechanism to retry tests. Case in point, I have a unit test code something like this:
[TestMethod] public async Task Get_Banner_ReturnOK() { //tests }
Im just looking for something I Can retry this TestMethod Twice or more, something like this:
[TestMethod] [Retry(2)] public async Task Get_Banner_ReturnOK() { //tests }
AB#2332770
The text was updated successfully, but these errors were encountered:
When using MSTest runner, you can opt-in for the retry extension (see https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-extensions-policy#retry) that would allow for a global retry policy feature but at the moment nothing is designed to allow retry at test level.
This is something we are planning to bring (cc @MarcoRossignoli and @nohwnd).
Sorry, something went wrong.
opt-in for the retry extension (see https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-extensions-policy#retry)
I see, It's looks better
I'll keep this issue opn as we do plan to have this feature or something similar.
RetryAttribute
Youssef1313
Successfully merging a pull request may close this issue.
Summary
I'm curious to know if there's any built-in mechanism to retry tests. Case in point, I have a unit test code something like this:
Im just looking for something I Can retry this TestMethod Twice or more, something like this:
AB#2332770
The text was updated successfully, but these errors were encountered: