XUnitPriorityOrderer 1.0.2
See the version list below for details.
dotnet add package XUnitPriorityOrderer --version 1.0.2
NuGet\Install-Package XUnitPriorityOrderer -Version 1.0.2
<PackageReference Include="XUnitPriorityOrderer" Version="1.0.2" />
paket add XUnitPriorityOrderer --version 1.0.2
#r "nuget: XUnitPriorityOrderer, 1.0.2"
// Install XUnitPriorityOrderer as a Cake Addin #addin nuget:?package=XUnitPriorityOrderer&version=1.0.2 // Install XUnitPriorityOrderer as a Cake Tool #tool nuget:?package=XUnitPriorityOrderer&version=1.0.2
XUnitPriorityOrderer
Order test cases and collections using xunit (ITestCaseOrderer, ITestCollectionOrderer)
Based in the guideline of tomdupont with some minor changes to get the collection order in project's assemblies that import the nuget
How to use
Add/Download the package XUnitPriorityOrderer from nuget.org
dotnet add package XUnitPriorityOrderer --version 1.0.2
set a base test class adding the required parameters (TestCollectionOrderer and TestCaseOrderer) following the sample:
using Xunit;
using XUnitPriorityOrderer;
[assembly: CollectionBehavior(DisableTestParallelization = true)]
[assembly: TestCollectionOrderer(CollectionPriorityOrderer.TypeName, CollectionPriorityOrderer.AssembyName)]
namespace MyTestsNameSpace
{
[TestCaseOrderer(
CasePriorityOrderer.TypeName,
CasePriorityOrderer.AssembyName)]
public class MyBaseTestClass { }
}
And set the order of your tests, following the sample
using Xunit;
using XUnitPriorityOrderer;
namespace MyTestsNameSpace
{
// Set collection order
[Order(5)]
public class MyTestClass : MyBaseTestClass
{
// Set case order
[Fact, Order(2)]
public void Test2() {}
// Set case order
[Fact, Order(1)]
public void Test1() {}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- Microsoft.NET.Test.Sdk (>= 15.7.0)
- xunit (>= 2.3.1)
- xunit.runner.visualstudio (>= 2.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on XUnitPriorityOrderer:
Repository | Stars |
---|---|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
caioavidal/OpenCoreMMO
Modern MMORPG server emulator written in C#
|
|
MUN1Z/KingNetwork
KingNetwork is an open source library to facilitate the creation and communication of clients and servers via TCP, UDP, WebSocket and RUDP sockets.
|