DotNet.MTPTestOptions Type
dotnet test command options for the Microsoft.Testing.Platform runner, see
DotNet.testMTP. With that runner dotnet test understands only a part of
the options itself and passes the others to the test applications. Every test application understands the
options of the platform. An option of a test framework or of an extension is rejected as an invalid command
line by a test application that does not reference that framework or extension, and the test run fails;
the documentation of each such field names what is needed.
Record fields
| Record Field | Description |
Full Usage:
ApplicationArguments
Field type: string list
|
More arguments for the test applications, passed as they are after the options above. Use them for
the options of a test framework or of an extension that have no field here, for example
|
Full Usage:
Architecture
Field type: string option
|
|
|
Collects code coverage. Needs the code coverage extension, see
MTPCodeCoverageOptions. (
|
Common tool options. Its Options.Verbosity is the verbosity of
the build (
|
|
Full Usage:
ConfigFile
Field type: string option
|
|
|
Configuration to use for building and running the tests,
|
|
Writes a memory dump when a test application crashes. Needs the crash dump extension, see
MTPCrashDumpOptions. (
|
|
Makes the test applications write a diagnostic log. This is an option of the platform.
(
|
Full Usage:
Filter
Field type: string option
|
Run the tests that match the given expression (
|
Full Usage:
Framework
Field type: string option
|
Target framework to run the tests for. The target framework has to be specified in the project
file. (
|
|
Writes a memory dump when a test application stops making progress. Needs the hang dump
extension, see MTPHangDumpOptions. (
|
Full Usage:
IgnoreExitCodes
Field type: int list
|
Exit codes of a test application that are not treated as a failure, for example
|
Full Usage:
ListTests
Field type: bool
|
|
Full Usage:
MaxParallelTestModules
Field type: int option
|
The maximum number of test applications that run in parallel, the number of processors when not
set (
|
Full Usage:
MinimumExpectedTests
Field type: int option
|
The minimum number of tests that have to run in the whole test run; with fewer tests the run fails
with the exit code 9 (
|
Full Usage:
NoAnsi
Field type: bool
|
|
Full Usage:
NoBuild
Field type: bool
|
Do not build the project before testing. Implies
MTPTestOptions.NoRestore. (
|
Full Usage:
NoLaunchProfile
Field type: bool
|
|
Full Usage:
NoLaunchProfileArguments
Field type: bool
|
|
Full Usage:
NoProgress
Field type: bool
|
|
Full Usage:
NoRestore
Field type: bool
|
|
Full Usage:
OS
Field type: string option
|
|
|
|
Full Usage:
Properties
Field type: (string * string) list
|
MSBuild properties for the evaluation and the build of the test projects
(
|
Full Usage:
ResultsDirectory
Field type: string option
|
The directory where the test results are going to be placed. The specified directory will be
created if it does not exist. (
|
Full Usage:
Runtime
Field type: string option
|
|
The time after which a test application stops its test run. This is an option of the platform,
so the time is counted for every test application on its own. It is passed in whole seconds.
Not to be confused with Options.Timeout of
MTPTestOptions.Common, which kills the
|
|
|
Writes a TRX report. Needs the TRX report extension, see
MTPTrxReportOptions. (
|
Instance members
| Instance member | Description |
|
|
|
|
|
|
|
|
Static members
| Static member | Description |
|
|