question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run multiple test assemblies in parallel with dotnet test and NUnit

See original GitHub issue

We want to run multiple assemblies in parallel with dotnet test and NUnit 3.x. This is no problem using the nunit-console runner, however, in .NET 5 you are supposed to use dotnet test instead which does not seem to have the possiblity to run the given assemblies in parallel.

Note: we don’t want to run the tests within one assembly in parallel, we want to run multiple assemblies that are given to dotnet test in parallel.

Best regards, D.R.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nohwndcommented, Aug 25, 2021

@drauch there is --parallel option, but I see it is missing from the help.

dotnet test C:\t\nunit-parallel\nunit1\bin\Debug\net6.0\nunit1.dll C:\t\nunit-parallel\nunit2\bin\Debug\net6.0\nunit2.dll --parallel

And also --logger:"console;verbosity=detailed" to see easier how tests are executing, but it will mix the output.

1reaction
drauchcommented, Aug 26, 2021

Tried it out today already, works like a charm. Many thanks @nohwnd 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run NUnit tests in parallel from command line?
In theory, NUnit might run them in parallel or not but in fact if it's possible it runs the tests in parallel up...
Read more >
dotnet test running assemblies in parallel (when mixing ...
I have an issue where "dotnet test" is running assemblies in parallel. I have tried adding [NonParallelizable] and [assembly: ...
Read more >
Framework Parallel Test Execution
The NUnit 3.0 framework can run tests in parallel within an assembly. This is a completely separate facility from Engine Parallel Test Execution, ......
Read more >
Run your unit tests in parallel with NUnit - Sander Aernouts' blog
You can configure NUnit to only run tests in one fixture in parallel with tests in another fixture, but this limits the amount...
Read more >
dotnet test command - .NET CLI
The dotnet test command builds the solution and runs a test host application for each test project in the solution. The test host...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found