NUnitTestOrdering 1.0.0

.NET Framework 4.6
dotnet add package NUnitTestOrdering --version 1.0.0
NuGet\Install-Package NUnitTestOrdering -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NUnitTestOrdering" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NUnitTestOrdering --version 1.0.0
#r "nuget: NUnitTestOrdering, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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.

Build status NuGet Version and Downloads count

Why?

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

Features

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.
Product Versions
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
    • NUnit (>= 3.7.0 && < 3.13.0)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,014 9/17/2020
1.0.0-beta1 1,824 1/3/2018
1.0.0-alpha5 686 7/12/2017
1.0.0-alpha4 822 5/13/2017
1.0.0-alpha3 703 11/10/2016
1.0.0-alpha2 682 10/2/2016
1.0.0-alpha1 799 9/16/2016

Version 1.0:
- Initial NuGet release