Microsoft.Testing.Extensions.Retry 2.3.3

Microsoft.Testing.Extensions.Retry

Microsoft.Testing.Extensions.Retry is an extension for Microsoft.Testing.Platform that provides test resilience and transient-fault handling by rerunning failed tests.

Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Extensions.Retry code in the microsoft/testfx GitHub repository.

Install the package

dotnet add package Microsoft.Testing.Extensions.Retry

About

This package extends Microsoft.Testing.Platform with:

  • Automatic retry: automatically re-runs failed tests up to a configurable number of times
  • Retry guards: can stop retries when failure thresholds are exceeded (--retry-failed-tests-max-percentage, --retry-failed-tests-max-tests)
  • Retry delay: optionally wait between retry attempts (--retry-failed-tests-delay)
  • Integration-test focus: intended for scenarios where transient environment issues can cause intermittent failures

Configure retry using --retry-failed-tests <retries>, and optionally limit retries with --retry-failed-tests-max-percentage or --retry-failed-tests-max-tests, or add a delay between retries with --retry-failed-tests-delay (e.g. 1s, 2.5m, 1h).

Documentation

For this extension, see https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-retry.

For comprehensive documentation, see https://aka.ms/testingplatform.

Feedback & contributing

Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.

Showing the top 20 packages that depend on Microsoft.Testing.Extensions.Retry.

Packages Downloads
MSTest.TestAdapter
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package. Supported platforms: - .NET 4.6.2+ - .NET 8.0+ - .NET 8.0 Windows.18362+ (WinUI) - UWP 10.0.16299 - UWP 10.0.17763 with .NET 9 MSTest is Microsoft supported Test Framework.
1

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
2.5.3 1 11/19/2026
2.5.2 0 10/27/2026
2.5.1 0 10/07/2026
2.5.0 1 11/21/2026
2.4.1 1 11/21/2026
2.4.0 1 11/20/2026
2.3.3 1 11/20/2026
2.3.2 1 11/20/2026
2.3.1 0 07/08/2026
2.3.0 1 11/21/2026
2.2.3 1 11/20/2026
2.2.2 0 04/30/2026
2.2.1 1 11/21/2026
2.1.0 1 11/21/2026
2.0.2 1 11/21/2026
2.0.1 1 11/20/2026
2.0.0 1 11/19/2026
2.0.0-preview.25480.4 1 11/21/2026
2.0.0-preview.25465.3 1 11/20/2026
2.0.0-preview.25454.2 0 09/04/2025
2.0.0-preview.25452.10 1 11/20/2026
2.0.0-preview.25415.9 0 08/15/2025
2.0.0-preview.25372.6 1 11/21/2026
2.0.0-preview.25358.7 1 11/19/2026
1.9.1 1 11/19/2026
1.9.0 1 11/20/2026
1.8.5 1 11/20/2026
1.8.4 0 09/02/2025
1.8.3 1 11/20/2026
1.8.2 0 08/12/2025
1.8.1 1 11/19/2026
1.8.0 0 07/29/2025
1.7.3 0 06/17/2025
1.7.2 1 11/20/2026
1.7.1 1 11/21/2026
1.7.0 1 11/20/2026
1.7.0-preview.25167.10 0 03/18/2025
1.6.3 0 03/17/2025
1.6.2 1 11/21/2026
1.6.1 1 11/21/2026
1.6.0 1 11/21/2026
1.5.3 0 01/27/2025
1.5.2 0 01/21/2025
1.5.1 1 11/20/2026
1.5.0 0 12/20/2024
1.4.3 1 11/20/2026
1.4.2 1 11/20/2026
1.4.1 1 11/20/2026
1.4.0 0 09/11/2024
1.3.2 0 08/05/2024
1.3.0 1 11/20/2026
1.3.0-preview.24325.1 0 06/25/2024
1.2.1 1 11/20/2026
1.2.0 0 05/16/2024
1.1.0 1 11/21/2026
1.1.0-preview.24163.4 1 11/21/2026
1.0.2 1 11/20/2026
1.0.1 0 02/13/2024
1.0.0 1 11/20/2026
1.0.0-preview.24068.6 1 11/21/2026