Namespace NUnitLite
Classes
AutoRun
The AutoRun class is used by executable test assemblies to control their own execution.
Call it from your executable test like this: new AutoRun().Execute(args); The arguments can be those passed into your exe or constructed for the purpose in your code.
If the tests are in a dll, you can write a stub executable that runs them like this: new Autorun().Execute(testAssembly, args);
When running tests compiled against the .NET Standard framework, the methods above are not available. Run your tests like this: new AutoRun().Execute(testAssembly, args, output, input); Where output is an ExtendedTextWriter (normally a ColorConsoleWriter) and input is usually Console.In and is used by the --wait option.
NUnit2XmlOutputWriter
NUnit2XmlOutputWriter is able to create an XML file representing the result of a test run in NUnit 2.x format.
NUnit3XmlOutputWriter
NUnit3XmlOutputWriter is responsible for writing the results of a test to a file in NUnit 3 format.
NUnitLiteOptions
NUnitLiteOptions encapsulates the option settings for NUnitLite. Currently, there are no additional options beyond those common options that are shared with nunit3-console. If NUnitLite should acquire some unique options, they should be placed here.
OutputManager
OutputManager is responsible for creating output files from a test run in various formats.
OutputWriter
OutputWriter is an abstract class used to write test results to a file in various formats. Specific OutputWriters are derived from this class.
ResultSummary
Helper class used to summarize the result of a test run
TeamCityEventListener
TeamCityEventListener class handles ITestListener events by issuing TeamCity service messages on the Console.
TestCaseOutputWriter
TestCaseOutputWriter lists test cases
TextRunner
TextRunner is a general purpose class that runs tests and outputs to a text-based user interface (TextUI).
Call it from your Main like this: new TextRunner(textWriter).Execute(args); OR new TextUI().Execute(args); The provided TextWriter is used by default, unless the arguments to Execute override it using -out. The second form uses the Console, provided it exists on the platform.
NOTE: When running on a platform without a Console, such as Windows Phone, the results will simply not appear if you fail to specify a file in the call itself or as an option.