nunit: Error while running nunit with nunit3-console program from dotnet enviromnet.
When we use console program to run the tests its running perfectly.
nunit3-console path to dll
From vs program i tried to run the same but am getting the folllowing error “Either assembly contains no tests or proper test driver has not been found.” code is
string path = @"path to dll";
NUnit.ConsoleRunner.Program.Main(new[] { path });
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (15 by maintainers)
@Rajulpl, @ChrisMaddock is correct, the engine will inspect your tests to determine if you use NUnit 2.x or 3.x and run them with the correct driver. The driver for NUnit 3 is built in, but the driver for NUnit 2 is not, so you must add it to your project using NuGet and include it in the
.addinsfile.If you look at an install of NUnit in the console directory, you can see the addin file and the addins directory. It also contains addins for writing out test results in the v2 format, loading tests from project files, etc.
I am going to close this since it isn’t an issue, but feel free to continue asking questions and we will do our best to answer.