Execute Multiple test DLLs with Nunit
-
12-12-2019 - |
Question
I have multiple Nunit test DLL's like a_test.dll, b_test.dll, c_test.dll.
Whenever I need to execute the these test projects, I need to load them individually in the Nunit application and execute them.
Can I add them all at once and execute?
Solution
I use the test runner included with ReSharper. You can do ReSharper > Unit Tests > Run All Tests From Solution, or Ctrl+U, Ctrl+L and it will run all of your unit tests in each project.
OTHER TIPS
If it's a repetetive task and you're have to load libraries each time you run nunit.exe, load them once and save as solution (.nunit file).
Also, if you have the code of those libraries - you may unite all projects to a solution, and then open it with nunit.
As for now it can't load multiple dlls no from open dialog and no as a parameters from command line.