Skip to main content
.NETStandard2.0

Retries for NUnit

Published
Sep 2, 2026
1mo ago
Total Downloads
183.3K
183,250

Install

dotnet add package SkbKontur.NUnit.Retries --version 0.1.7
ProductVersions
.NET Standard
netstandard2.0

README

NUnit.Retries

NuGet Status Build status

Couple of helpful attributes for test retries:

  • RetryOnErrorAttribute is like NUnit's own RetryAttribute, but it can be applied to whole Fixture/Suite/Assembly, and supports retry after exceptions in test, not only assertion failures
  • On top of that, RetryOnTeamCityAttribute also supports TeamCity's test retry feature
  • NoRetryAttribute for disabling retries

Attributes can be overriden on any level, e.g.

  • MyAssembly.dll: [RetryOnError(2)]
  • MySuite.cs: [NoRetry]
  • MyTestFixture.cs: [RetryOnTeamCity(3)]
  • MyTestMethod(): [RetryOnError(4)]

This means we have two retries on assembly level in MyAssembly.dll, but no retries in MySuite, if MyTestFixture is also in MySuite, previous attributes are overriden by RetryOnTeamCity, and method MyTestMethod in MyTestFixture is retried 4 times.

Changes from Previous Version

No structural changes between v0.1.6 and v0.1.7.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.