Skip to content

NUnit Xamarin Runners

Chris Maddock edited this page Nov 25, 2016 · 10 revisions

The NUnit Xamarin Runners provide NUnit 3 test runners for Xamarin and mobile devices. See Testing Xamarin projects using NUnit 3 for more general information.

Options

Runner options are set inside a TestOptions object. For example:

var nunit = new NUnit.Runner.App();

nunit.Options = new TestOptions
            {
                AutoRun = true
            };

The following options are available:

Option Version added Type Usage
AutoRun 3.0 Boolean If True, the tests will run automatically when the app starts otherwise you must run them manually.
TcpWriterParameters 3.1 TcpWriterInfo Provide a TCP listener host and port, sends result as XML to the listening server. Takes a TcpWriterInfo - see below.
CreateXmlResultFile 3.1 Boolean If True, create a xml file containing results.
ResultFilePath 3.1 String Specify file path to save xml result file.

###TcpWriterInfo TcpWriterInfo takes three parameters: hostname, port, and an optional timeout in seconds (default 10).

TcpWriterParameters = new TcpWriterInfo("192.168.0.108", 13000, 10);
Clone this wiki locally