XUnitPriorityOrderer 1.0.3

dotnet add package XUnitPriorityOrderer --version 1.0.3
NuGet\Install-Package XUnitPriorityOrderer -Version 1.0.3
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="XUnitPriorityOrderer" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XUnitPriorityOrderer --version 1.0.3
#r "nuget: XUnitPriorityOrderer, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XUnitPriorityOrderer as a Cake Addin
#addin nuget:?package=XUnitPriorityOrderer&version=1.0.3

// Install XUnitPriorityOrderer as a Cake Tool
#tool nuget:?package=XUnitPriorityOrderer&version=1.0.3

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;

// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on XUnitPriorityOrderer:

Repository Stars
caioavidal/OpenCoreMMO
Modern MMORPG server emulator written in C#
Version Downloads Last updated
1.0.3 95,385 9/21/2018
1.0.2 804 9/20/2018
1.0.1 809 9/19/2018
1.0.0 954 9/19/2018