How to run NUnit tests at the same time?

I have a set of integration tests written in C # and NUnit, and I want to run them in parallel on a build machine. How can I do it? In a similar question, the decision made was:

  • Create your own test runner
  • Move to MBUnit

There is also the NUnit.MultiCore project, but it’s in the Alpha version, which will be scary to use in production ... Or run several standard NUnit runners in parallel using the build capabilities, which is a workaround and not a long-term solution.

Has anything changed so far? I would like to stay with NUnit, and I'm not too sure how easy it is to create your own test runner.

+4
source share
3 answers

Starting with version 3, the NUnit framework itself supports parallel test execution. You can choose whether you want parallelism to be at the test test or fixture level.

Read more on the NUnit3 wiki on GitHub

+1
source

Since NUnit 2.5, NUnit has sent PNUnit a runner that can run NUnit tests in parallel. As far as I understand, PNUnit will be integrated into the long planned NUnit 3.0.

Here is a pretty good overview of how to use it here.

+3
source

What was a good experience with the ALPACA tool (see home page ). It analyzes the code and gives hints for data races and deadlocks. This is not perfect, but was very helpful.

0
source

Source: https://habr.com/ru/post/1384350/


All Articles