The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
vsTest
: Run unit tests with VSTest.consolecmdLineArgs : String
(optional)
enablecodecoverage : boolean
(optional)
Enables data diagnostic adapter CodeCoverage in the test run.
Default settings are used if not specified using settings file.
Command Line Argument: /Enablecodecoverage
failBuild : boolean
(optional)
framework : String
(optional)
Target .NET Framework version to be used for test execution.
Valid values are Framework35, Framework40 and Framework45.
Command Line Argument: /Framework: [ framework version ]
inIsolation : boolean
(optional)
Runs the tests in an isolated process.
This makes vstest.console.exe process less likely to be stopped on an error in the tests, but tests might run slower.
logger : String
(optional)
Specify a logger for test results. For example, to log results into a Visual Studio Test Results File (TRX) use /Logger:trx.
Command Line Argument: /Logger:[ uri/friendlyname ]
platform : String
(optional)
Target platform architecture to be used for test execution.
Valid values are x86, x64 and ARM.
settings : String
(optional)
Run tests with additional settings such as data collectors.
Example: Local.RunSettings
Command Line Argument: /Settings:[ file name ]
testCaseFilter : String
(optional)
Run tests that match the given expression.
<Expression> is of the format <property>=<value>[||<Expression>].
Example: TestCategory=Nightly||Name=Namespace.ClassName.MethodName
The TestCaseFilter command line option cannot be used with the Tests command line option.
Command Line Argument: /TestCaseFilter:[ expression ]
testFiles : String
(optional)
Specify the path to your VSTest compiled assemblies.
You can specify multiple test assemblies by separating them with new-line or space.
tests : String
(optional)
Run tests with names that match the provided values.
To provide multiple values, separate them by commas.
Example: TestMethod1,testMethod2
The /Tests command line option cannot be used with the /TestCaseFilter command line option.
Command Line Argument: /Tests:[ test name ]
useVs2017Plus : boolean
(optional)
This makes adjustments to the arguments for the sake of compatibility with Visual Studio 2017+.
Command Line Argument: /UseVs2017Plus:true
useVsixExtensions : boolean
(optional)
This makes vstest.console.exe process use or skip the VSIX extensions installed (if any) in the test run.
Command Line Argument: /UseVsixExtensions:true
vsTestName : String
(optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.