Skip to content

Instantly share code, notes, and snippets.

@StephenCavender
Created May 10, 2017 12:13
Show Gist options
  • Save StephenCavender/2c635ff4e674a283c14c25f8a841152e to your computer and use it in GitHub Desktop.
Save StephenCavender/2c635ff4e674a283c14c25f8a841152e to your computer and use it in GitHub Desktop.
xUnit 2.2.0 console runner options
xUnit.net Console Runner (64-bit .NET 4.0.30319.42000)
Copyright (C) 2016 .NET Foundation.
usage: xunit.console <assemblyFile> [configFile] [assemblyFile [configFile]...] [options] [reporter] [resultFormat filename [...]]
Note: Configuration files must end in .json (for JSON) or .config (for XML)
Valid options:
-nologo : do not show the copyright message
-nocolor : do not output results with colors
-noappdomain : do not use app domains to run test code
-failskips : convert skipped tests into failures
-parallel option : set parallelization based on option
: none - turn off all parallelization
: collections - only parallelize collections
: assemblies - only parallelize assemblies
: all - parallelize assemblies & collections
-maxthreads count : maximum thread count for collection parallelization
: default - run with default (1 thread per CPU thread)
: unlimited - run with unbounded thread count
: (number) - limit task thread pool size to 'count'
-noshadow : do not shadow copy assemblies
-wait : wait for input after completion
-diagnostics : enable diagnostics messages for all test assemblies
-debug : launch the debugger to debug the tests
-serialize : serialize all test cases (for diagnostic purposes only)
-trait "name=value" : only run tests with matching name/value traits
: if specified more than once, acts as an OR operation
-notrait "name=value" : do not run tests with matching name/value traits
: if specified more than once, acts as an AND operation
-method "name" : run a given test method (should be fully specified;
: i.e., 'MyNamespace.MyClass.MyTestMethod')
: if specified more than once, acts as an OR operation
-class "name" : run all methods in a given test class (should be fully
: specified; i.e., 'MyNamespace.MyClass')
: if specified more than once, acts as an OR operation
-namespace "name" : run all methods in a given namespace (i.e.,
: 'MyNamespace.MySubNamespace')
: if specified more than once, acts as an OR operation
-noautoreporters : do not allow reporters to be auto-enabled by environment
: (for example, auto-detecting TeamCity or AppVeyor)
Reporters: (optional, choose only one)
-appveyor : forces AppVeyor CI mode (normally auto-detected)
-json : show progress messages in JSON format
-quiet : do not show progress messages
-teamcity : forces TeamCity mode (normally auto-detected)
-verbose : show verbose progress messages
Result formats: (optional, choose one or more)
-xml <filename> : output results to xUnit.net v2 XML file
-xmlv1 <filename> : output results to xUnit.net v1 XML file
-nunit <filename> : output results to NUnit v2.5 XML file
-html <filename> : output results to HTML file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment