2

I have a few tests written in c#.net using NUnit3. I have added the number of instances the test cases should run in parallel in assemblyinfo.cs file by [assembly: LevelOfParallelism(4)]. Now every time I run tests, it will run 4 tests in parallel. How can I control this number using console? Can I pass a parameter so that the tests will run only 1 at a time but do not want to change the above value

1 Answers1

3

It should be possible to override the LevelOfParallelism attribute with the --workers command line option.

(LevelOfParallelism Docs)

(Command line Docs)

Chris
  • 5,882
  • 2
  • 32
  • 57