File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11![ Icon] ( https://github.com/asherber/Xunit.Priority/blob/main/media/xunit-priority-64.png )
22
3- # Xunit.Priority [ ![ NuGet] ( https://img.shields.io/nuget/v/Xunit.Priority.svg )] ( https://nuget.org/packages/Xunit.Priority ) [ ![ Build status] ( https://github.com/asherber/Xunit.Priority/actions/workflows/CI.yml/badge.svg )] ( https://github.com/asherber/Xunit.Priority/actions )
3+ # Xunit.Priority [ ![ Build status] ( https://github.com/asherber/Xunit.Priority/actions/workflows/CI.yml/badge.svg )] ( https://github.com/asherber/Xunit.Priority/actions )
4+
5+ | Package | Supported xUnit Version | NuGet |
6+ | ------------------------| ------------------------| ----------------------------------------------------------------------------------------|
7+ | Xunit.Priority | xunit v2 | [ ![ NuGet] ( https://img.shields.io/nuget/v/Xunit.Priority.svg )] ( https://nuget.org/packages/Xunit.Priority ) |
8+ | Xunit.v3.Priority | xunit v3 | [ ![ NuGet] ( https://img.shields.io/nuget/v/Xunit.v3.Priority.svg )] ( https://nuget.org/packages/Xunit.v3.Priority ) |
49
510Provides an ` ITestCaseOrderer ` that allows you to control the order of execution of Xunit tests within a class.
611
@@ -13,7 +18,11 @@ Based closely on the code at https://github.com/xunit/samples.xunit/tree/main/Te
1318Add the following attribute to classes for which you want tests run in order:
1419
1520``` csharp
21+ // for Xunit.Priority
1622 [TestCaseOrderer (PriorityOrderer .Name , PriorityOrderer .Assembly )]
23+
24+ // for Xunit.v3.Priority
25+ [TestCaseOrderer (typeof (PriorityOrderer ))]
1726```
1827
1928Then decorate your test methods with the ` Priority ` attribute.
You can’t perform that action at this time.
0 commit comments