MSTest
Last modified: 20 April 2023This page describes MSTest runner options; for details on MSTest support, please refer to the corresponding page.
The runner requires the appropriate Microsoft Visual Studio edition installed on the build agent.
note
Since TeamCity 9.1 the MSTest runner is merged into the Visual Studio Tests runner. After upgrade to TeamCity 9.1, MSTest build steps are automatically configured by the new runner. VSTest steps have to be configured manually.
Option | Description |
---|---|
Path to MSTest.exe | A path to |
List assembly files | A list of assemblies to run MSTests on. Will be mapped to |
MSTest run configuration file | Specify a MSTest run configuration file to use ( |
MSTest metadata | Enter a value for |
Testlist from metadata to run | Every line will be translated into /testlist:line argument. |
Test | Names of the tests to run. This option will be translated to the series of |
Results file | Enter a value for |
Additional commandline parameters | Enter additional commandline parameters for |
Please, note that tests run with MSTest are not reported on-the-fly. For more details on configuring MSTests, please refer to the MSTest.exe Command-Line Options
Code Coverage
To learn about configuring code coverage options, please refer to the Configuring .NET Code Coverage page.
Thanks for your feedback!