DEPRECATION WARNING:
Configuration via App.config
file is officially deprecated
and will not be supported in v3. The documentation page exists for historical purposes.
You should convert to JSON-based configuration at your
earliest convenience.
Below is a list of supported keys and values (the version column is the version of
xunit.runner.utility
where the configuration element support was
added). The configuration items should be added to the <appSettings>
section of your App.config
file.
Key | Supported Values |
---|---|
xunit.appDomain [Runners v2 2.1+] |
Set this value to determine whether app domains are used. By default, they
will be used when available (the
Default value: |
xunit.diagnosticMessages [Runners v2 2.0+] |
Set this value to
Default value: |
xunit.longRunningTestSeconds [Runners v2 2.2+] |
Set this value to enable long-running (hung) test detection. When the runner is
idle waiting for tests to finished, it will report that fact once the timeout
has passed. Use a value of NOTE: Long running test messages are diagnostic messages. You must enable diagnostic messages in order to see the long running test warnings.
Default value: |
xunit.maxParallelThreads [Runners v2 2.0+] |
Set this to override the maximum number of threads to be used when parallelizing
tests within this assembly. Use a value of
Default value: the number of logical processors in your PC |
xunit.methodDisplay [Runners v2 2.0+] |
Set this to override the default display name for test cases. If you set this
to
Default value: |
xunit.methodDisplayOptions [Runners v2 2.4+] |
Set this to automatically perform transforms on default test names. This value
can either be
Default value: |
xunit.parallelizeAssembly [Runners v2 2.0+] |
Set this to
Default value: |
xunit.parallelizeTestCollections [Runners v2 2.0+] |
Set this to
Default value: |
xunit.preEnumerateTheories [Runners v2 2.0+] |
Set this to
This value does not have a default, because it's up to each individual test runner
to decide what the best default behavior is. The Visual Studio adapter, for example,
will default to Supported by: xUnit.net v2 |
xunit.shadowCopy [Runners v2 2.1+] |
Set this to
Default value: |