Reputation: 913
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
Upvotes: 2
Views: 1430
Reputation: 6062
It should be possible to override the LevelOfParallelism
attribute with the --workers
command line option.
Upvotes: 3