How do I install the NUnit 3 console on Windows and run tests?

I want to run tests from the console like this (being in any directory, the dll may be a different .NET version):

$ nunit3-console test.dll

      

I've googled a lot but can't seem to find how to set this up. There is nothing useful in the official tutorial, full of scratch, after which it will not show me anywhere: https://github.com/nunit/docs/wiki/Installation

+3


source to share


1 answer


Difficult to find because there is a lot of outdated documentation for NUnit2 or NUnit3.

Steps:



  • The official installers of the NUnit3 console are here: https://github.com/nunit/nunit-console/releases (path is different from docs)
  • Download the NUnit.Console-*.msi

    package and install
  • Add to the system PATH

    variable this:C:\Program Files (x86)\NUnit.org\nunit-console

  • Open command prompt
  • A type:

    $ nunit3-console test.dll

// To run multiple test builds in parallel see fooobar.com/questions/1621100 / ...

+6


source







All Articles