Skip to content

Default Configuration

Michael Brown edited this page Mar 13, 2020 · 3 revisions

The default configuration, located in appsettings.json in your NUnit.Commander installation folder.

{
  "ApplicationConfiguration": {
    // true to log final reports to a file
    "EnableLog": false,
    // the path to store any logs/analysis data
    "LogPath": "C:\\TestLogs",
    // choose the display mode: LogFriendly, FullScreen
    "DisplayMode": "LogFriendly",
    // choose the color scheme: Default, Cmder
    "ColorScheme": "Default",
    // the time in seconds to try connecting to NUnit.Extension.TestMonitor
    "ConnectTimeoutSeconds": 5,
    // the number of active tests to display on screen at a time
    "MaxActiveTestsToDisplay": 15,
    // the number of failed tests to display on screen at a time
    "MaxFailedTestsToDisplay": 5,
    // the reports you want to see when the run is completed [multiple, comma separated]: "All", "PassFail", "Performance", "TestOutput", "Errors", "StackTraces", "TestAnalysis"
    "GenerateReportType": "All",
    // the event format type NUnit.Extension.TestMonitor is configured to send: "Json", "Xml", "Binary". Default: "Json"
    "EventFormatType": "Json",
    // the number of Performance (slow test) entries to display
    "SlowestTestsCount": 10,
    // true to always show output of the test runner
    "ShowTestRunnerOutput": false,
    // how often to should draw to the screen when stdout is redirected (0 = use default 5000ms)
    "RedirectedDrawIntervalMilliseconds": 0,
    // how long to should keep tests displayed after they have finished running (0 = use default 2000ms)
    "ActiveTestLifetimeMilliseconds": 0,
    // how long to should keep tests displayed after they have finished running when stdout is redirected (0 = use default 1500ms)
    "RedirectedActiveTestLifetimeMilliseconds": 0,
    "HistoryAnalysisConfiguration": {
      // true to enable history analysis
      "Enabled": true,
      // specify the number of test runs to store for reliability analysis
      "MaxTestReliabilityRuns": 50,
      // the minimum number of history entries to analyze
      "MinTestHistoryToAnalyze": 5,
      // the minimum percentage (0.001-1.0) of failed tests allowed. Default: 0.05 (5%)
      "MinTestReliabilityThreshold": 0.05,
      // The minimum percentage (0.001-1.0) of a tests duration can change before triggering failure. Default: 0.4 (40%)
      "MaxTestDurationChange": 0.4,
      // tests that complete less than this time will not have duration analysis checked
      "MinTestMillisecondsForDurationAnalysis": 1000
    }
  }
}
Clone this wiki locally