I have a situation where I want to run tests in parallel using NUnit
To do this I use the attributes below
[Parallelizable(ParallelScope.All)]
[FixtureLifeCycle(LifeCycle.InstancePerTestCase)]
[TestFixture]
public class MyTestFixture
{
[Test]
public void Test1()
{
}
[Test]
public void Test2()
{
}
}
}
In my actual scenario I have over 200 tests in a fixture
Watching the test explorer in Visual Studio the tests dont appear to be run in parallel
The same applies when running the tests via NUnit Lite
Is there a way of just running this test fixture via the command line to see if its an issue with the runners?
What am I doing wrong?
Paul
If you want to run NUnit tests in parallel, you can use the Parallelizable
attribute over the test cases.
NUnit 3 offers a Parallelizable attribute, which can be used to denote which tests can be run in parallel
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.