Nunit3 Running on command line
Prepare...
1. Download & install "Nunit3-console.msi or Nunit3-console.zip"
Run...
2. Open CMD.exe
3. Go to Path of Nunit3-console.exe "cd Path"
ex. "cd C:\Users\Documents\Visual Studio 2015\Projects\nunit-console"
4. Complie your code at visual studio 2015 for get UnitTestProject.dll
5. Run UnitTestProject.dll on CMD "nunit3-console path+UnitTestProject2.dll"
ex. nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll"
Library
--where "cat == //A category assigned to the testnunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "cat == A"
--where "method == //only a method
nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "method != TestMethod1"
--where "name == //all test mathod name
nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "name == TestMethod1"
--where "class == //all test attributed in this class
nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "class == UnitTestProject2.UnitTest1"
--where "test == //all test attributed in this class
nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "test == UnitTestProject2.UnitTest1"
--workers=
nunit3-console "C:\Users\Documents\Visual Studio 2015\Projects\ConsoleApplication1\UnitTestProject2\bin\Debug\UnitTestProject2.dll" --where "class == UnitTestProject2.UnitTest1" --workers=7