46 lines
2.8 KiB
Plaintext
46 lines
2.8 KiB
Plaintext
$ dotnet test -help
|
|
|
|
xUnit.net .NET CLI test runner (64-bit .NET Core win10-x64)
|
|
Copyright (C) 2016 .NET Foundation.
|
|
usage: dotnet-test-xunit [configFile.json] [options] [reporter] [resultFormat filename [...]]
|
|
|
|
Valid options:
|
|
-nologo : do not show the header message
|
|
-nocolor : do not output results with colors
|
|
-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 collections and assemblies
|
|
-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'
|
|
-wait : wait for input after completion
|
|
-diagnostics : enable diagnostics messages for all test assemblies
|
|
-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 style XML file |