NUnitTestOrdering 1.0.0

Allows you to hierarchically order your entire (or part of) your NUnit test suite, support dependencies between tests and skipping tests if their dependencies fail. Ideal for complex integration tests.

Install-Package NUnitTestOrdering -Version 1.0.0
dotnet add package NUnitTestOrdering --version 1.0.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

Release Notes

Version 1.0:
- Initial NuGet release

    • 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 History

Version Downloads Last updated
1.0.0 87 9/17/2020
1.0.0-beta1 850 1/3/2018
1.0.0-alpha5 401 7/12/2017
1.0.0-alpha4 530 5/13/2017
1.0.0-alpha3 424 11/10/2016
1.0.0-alpha2 406 10/2/2016
1.0.0-alpha1 465 9/16/2016