Skip to content

Commit c5e1d6c

Browse files
committed
Update README.md (from @licon4812)
1 parent 81b01e2 commit c5e1d6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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

510
Provides 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
1318
Add 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

1928
Then decorate your test methods with the `Priority` attribute.

0 commit comments

Comments
 (0)