What can prevent MSTest from running in parallel? I set the parallelTestCount to 0, but it is still running one test at a time.
As opposed to the other frameworks which only allow parallelization at the class level. So, for example, If you have 100 test methods in 5 classes, MSTest will let you run 100 tests in parallel. However, with NUnit, you can only run the 5 tests in parallel, one from each test class at the time.
Scope : Determine if the runner must parallelize tests at the method or class level. MethodLevel will run all tests in parallel. ClassLevel will run all test classes in parallel, but tests in a class are run sequentially. You should use ClassLevel if the tests within classes have interdependencies.
TestInitialize and TestCleanup are ran before and after each test, this is to ensure that no tests are coupled. If you want to run methods before and after ALL tests, decorate relevant methods with the ClassInitialize and ClassCleanup attributes.
The NUnit 3.0 framework can run tests in parallel within an assembly. This is a completely separate facility from Engine Parallel Test Execution, although it is possible to use both in the same test run. By default, no parallel execution takes place.
One possibility you may not have tried yet... This article mentions that you need to restart your environment before the changes will take effect. Also, have you made any changes to your testsettings before setting parallelTestCount to 0? If so you'd have to make the changes again. Hope this helps!
You must not have any data collectors configured and you cant run any Coded UI tests.
This article contains all the details I think.
Not having multiple cores. See this post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With