You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've created small project with Xunit.DependencyInjection v9.8.0 with 2 simple test classes (just copy paste to reproduce the issue) :
using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = false, MaxParallelThreads = 1)]
namespace Test.Xunit.Project;
public class Class1
{
[Fact]
public async Task TestOne()
{
await Task.Delay(10000);
Assert.True(true);
}
}
When I run both classes, I expect that they are run sequentially (because MaxParallelThreads = 1), but they run in parallel. Meanwhile, when I use the xunit package without your library, it works perfectly, running as many tests as I specify in MaxParallelThreads.
I saw a similar issue which was closed: #111 (comment), but this does not work for me.
Could you please elaborate and suggest a fix?
The text was updated successfully, but these errors were encountered:
Describe the bug
I've created small project with Xunit.DependencyInjection v9.8.0 with 2 simple test classes (just copy paste to reproduce the issue) :
When I run both classes, I expect that they are run sequentially (because MaxParallelThreads = 1), but they run in parallel. Meanwhile, when I use the xunit package without your library, it works perfectly, running as many tests as I specify in MaxParallelThreads.
I saw a similar issue which was closed: #111 (comment), but this does not work for me.
Could you please elaborate and suggest a fix?
The text was updated successfully, but these errors were encountered: