Install
dotnet add package SkbKontur.NUnit.Retries --version 0.1.7
| Product | Versions |
|---|---|
| .NET Standard |
README
NUnit.Retries
Couple of helpful attributes for test retries:
RetryOnErrorAttributeis like NUnit's ownRetryAttribute, 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,
RetryOnTeamCityAttributealso supports TeamCity's test retry feature NoRetryAttributefor 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.