![]() |
VOOZH | about |
dotnet add package XUnitPriorityOrderer --version 1.0.3
NuGet\Install-Package XUnitPriorityOrderer -Version 1.0.3
<PackageReference Include="XUnitPriorityOrderer" Version="1.0.3" />
<PackageVersion Include="XUnitPriorityOrderer" Version="1.0.3" />Directory.Packages.props
<PackageReference Include="XUnitPriorityOrderer" />Project file
paket add XUnitPriorityOrderer --version 1.0.3
#r "nuget: XUnitPriorityOrderer, 1.0.3"
#:package XUnitPriorityOrderer@1.0.3
#addin nuget:?package=XUnitPriorityOrderer&version=1.0.3Install as a Cake Addin
#tool nuget:?package=XUnitPriorityOrderer&version=1.0.3Install as a Cake Tool
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
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;
// set to be sequential execution
[assembly: CollectionBehavior(DisableTestParallelization = true)]
// addset the custom test's collection orderer
[assembly: TestCollectionOrderer(CollectionPriorityOrderer.TypeName, CollectionPriorityOrderer.AssembyName)]
namespace MyTestsNameSpace
{
// set the custom test's case orderer
[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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 is compatible. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
This package is not used by any NuGet packages.
Showing the top 2 popular GitHub repositories that depend on XUnitPriorityOrderer:
| Repository | Stars |
|---|---|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
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.
|