AssemblyInfo.cs
using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(3)]
Now I have 55 test classes in my suite, and I have marked only 5 test class as [Parallelizable(ParallelScope.Fixtures)]. When I try to execute the tests from any test class its running parallelly. I need only the 5 test class to run in parallel and other 50 test class should run sequentially.
I tried adding [NonParallelizable] in remaining test class but it didn't help. Any solution or suggestion is welcome..
Nunit version is 3.13.3
Try this:
Change the scope as needed according to your specific solution. I would suggest using
ParallelScope.Childrenif you have all the test that you want to run in parallel in the same class.