dotnet add package NUnitTestOrdering --version 1.0.0
NuGet\Install-Package NUnitTestOrdering -Version 1.0.0
<PackageReference Include="NUnitTestOrdering" Version="1.0.0" />
paket add NUnitTestOrdering --version 1.0.0
#r "nuget: NUnitTestOrdering, 1.0.0"
// Install NUnitTestOrdering as a Cake Addin #addin nuget:?package=NUnitTestOrdering&version=1.0.0 // Install NUnitTestOrdering as a Cake Tool #tool nuget:?package=NUnitTestOrdering&version=1.0.0
NUnit Ordered Testing library
This library allows you to use test ordering with NUnit. This is an implementation of ordered tests for NUnit, similar in how they exist in the MSTest framework.
The primary use case of this library is to allow integration tests to depend on each other. You may want to test a certain work flow in the application, but each step of the workflow is a test of its own. When testing a web shop application, you may want to test these steps:
- Manage products
- Add product in web shop
- Find the product in the overview
- Add stock for the product
- Buy product
- Find product using search
- Add to basket
- Buy product
- Manage shipping
Using this library you can model and manage workflow tests such as the above.
In essence this library is a replacement and improvement to MSTest Ordered Tests implemented for NUnit.
Note: Don't use this library to order to unit tests, that's bad practice. You want your unit tests to be as independent as possible
The library offers the following features:
- Build complex test ordering hierarchies.
- Skip subsequent tests if an earlier test fails.
- Order your test methods by dependency instead of integer order.
- Supports usage side-by-side with unordered tests. Unordered tests are executed first.
|.NET Framework||net46 net461 net462 net463 net47 net471 net472 net48|
- NUnit (>= 3.7.0 && < 3.13.0)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
- Initial NuGet release