Pass parameters via the command line to NUnit
Use an environment variable to pass the information. Use set from the command-line or <setenv> from NAnt. Then read the value using Environment.GetEnvironmentVariable().
Use an environment variable to pass the information. Use set from the command-line or <setenv> from NAnt. Then read the value using Environment.GetEnvironmentVariable().
Error code -100 stands for UNEXPECTED_ERROR static ConsoleUi() { OK = 0; INVALID_ARG = -1; FILE_NOT_FOUND = -2; FIXTURE_NOT_FOUND = -3; TRANSFORM_ERROR = -4; UNEXPECTED_ERROR = -100; } EDIT: Additional information from a thread on the NUnit-Discuss google group: Additionally, positive values give a count of failed tests in the run. The -100 return code … Read more
It is hard to find, because there is a lot of outdated documentation, either for NUnit2 or NUnit3. Steps: Official NUnit3 console installers are here: https://github.com/nunit/nunit-console/releases (path is different than in docs) Download NUnit.Console-*.msi package and install Add to system PATH variable this: C:\Program Files (x86)\NUnit.org\nunit-console Open command line Type: $ nunit3-console test.dll // For … Read more