meziantou / Meziantou.Xunit.ParallelTestFramework

Run xUnit test cases in parallel
MIT License
156 stars 6 forks source link

parallel test execute in per csproject #10

Open EngRajabi opened 6 months ago

EngRajabi commented 6 months ago

Thank you for the great package you wrote. After installing the package, I witnessed that all the tests in the classes were executed in parallel at the same time. But when I ran the tests at the solution level, I suddenly realized that the other tests at the solution level are not running at the same time. Whereas before, they were executed in parallel at the same time. Now the tests of each csprojec are not executed in parallel at the same time and the projects are executed one by one

iikuzmychov commented 2 weeks ago

As far as I know, running tests from different assemblies in parallel is a built-in xUnit option, take a look here.

You just need to create xunit.runner.json file within the root of the test project and add an option:

{
    "parallelizeAssembly": true
}