Skip to content

docs(dotnet): document retrying failed tests - #43920

Merged
Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:docs-dotnet-retries
Nov 5, 2026
Merged

Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:docs-dotnet-retries

Conversation

@dgozman

Copy link
Copy Markdown
Collaborator

Summary

  • Add a "Retrying failed tests" section to the .NET test runners guide: the Retry attribute for NUnit and MSTest, and the Microsoft.Testing.Platform retry extension for MSTest, NUnit and xUnit v3.
  • NUnit needs RetryExceptions with PlaywrightException and TimeoutException, because it only retries failed NUnit assertions by default.

References microsoft/playwright-dotnet#2316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants