Retries for NUnit
License
—
Deps
1
Install Size
—
Vulns
✓ 0
Published
Jul 30, 2025
$ dotnet add package SkbKontur.NUnit.RetriesCouple 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 failuresRetryOnTeamCityAttribute also supports TeamCity's test retry featureNoRetryAttribute for disabling retriesAttributes can be overriden on any level, e.g.
[RetryOnError(2)][NoRetry][RetryOnTeamCity(3)][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.