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
It should be possible to override the LevelOfParallelism
attribute with the --workers
command line option.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.