0

I created a simple test suite using NUnit by opening a new .Net console application project.

In the Visual Studio at Test explorer I can see my test methods. Now I want to run them using CMD, i.e. at the command line prompt.

How do I going to do this?

enter image description here

These are my files inside the bin folder.

  • What exactly is your question? It's hard to understand given your current description and this may lead to this question being closed. – Chris Kenst Feb 28 '17 at 17:08
1

You need to install the NUnit with the installer this installs the executables in your PATH. Just using the NuGet packages won't work.

How to run from the command line is documentation in the NUnit documentation:

Looks something like

 nunit3-console yourtest.dll

As an alternative you can look at the NUnit light runner, this way you can build an .exe that will include everything to run the tests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.