Closed aandrieiev1998 closed 10 months ago
Can you provide a simple class where ordering doesn't work for you?
Raw example:
using Xunit;
using Xunit.Priority;
public class Testorder
{
[Fact, Priority(1)]
public async Task Test1()
{
Assert.True(true);
}
[Fact, Priority(2)]
public async Task Test2()
{
Assert.True(true);
}
[Fact, Priority(3)]
public async Task Test3()
{
Assert.True(true);
}
[Fact, Priority(4)]
public async Task Test4()
{
Assert.True(true);
}
}
You need to apply the orderer to the class:
using Xunit;
using Xunit.Priority;
[TestCaseOrderer(PriorityOrderer.Name, PriorityOrderer.Assembly)]
public class Testorder
{
}
For async test methods ordering doesn't work? It is required to disable parallelization for that. Is there a way to achieve that?