Skip to content

Command Line Arguments

Michael Brown edited this page Apr 24, 2020 · 2 revisions

USAGE:

Launch commander using NUnit:

.\NUnit.Commander.exe --args "C:\Path-to\TestProject\bin\TestProject.dll C:\Path-to\TestProject2\bin\TestProject2.dll" --path C:\Path-to\nunit-console --test-runner NUnitConsole

Launch commander using dotnet test:

.\NUnit.Commander.exe --args C:\Path-to\Project --test-runner DotNetTest

-l, --log Enable test logging

--logs-path Specify the path to store logs

-d, --display-mode Specify the display mode: LogFriendly,FullScreen

--timeout Specify the length of seconds to wait to connect

--max-display Specify the number of active tests to display on screen at a time

--max-failed-display Specify the number of failed tests to display on screen at a time

--generate-reports Specify which reports to generate

--event-format Specify which event format type NUnit.Extension.TestMonitor is configured to send. Default: json

--slowest Specify the number of slowest tests to display in report

-o, --test-output Show test runner output

-c, --color-scheme Specify the color scheme

-r, --test-reliability Enable analysis of unrelaible tests over a period of time

-m, --max-runs Specify the number of test runs to store for reliability analysis

--min-runs The minimum number of history entries to analyze

--ratio The minimum percentage (0.001-1.0) of failed tests allowed. Default: 0.05 (5%)

--duration-change The minimum percentage (0.001-1.0) of a tests duration can change before triggering failure. Default: 0.4 (40%)

--min-duration Tests that complete less than this time will not have duration analysis checked. Default: 1000

-t, --test-runner Specify which test runner to use: NUnitConsole, DotNetTest. If unspecified it will connect to any already running console runner

-a, --args Specify arguments to pass to nunit-console or dotnet test. You can embed a " character with "

-p, --path Specify the path to the test runner exe

--display-output Enable displaying of test-runner output (for debugging)

--repeat (Default: 1) Run tests continuously up to a specified count

--list-colors List all of the colors in the color scheme

--clear-history Clear the run history database

--help Display this help screen.

--version Display version information.

--auto-update Enable auto-updates of the application. Returns exit code 3 when application is updated.

--relaunch Enable re-launching of application after an auto-update.

Clone this wiki locally