This 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.
Option
Description
Path to MSTest.exe
A path to MSTest.exe file. By default Build Agent will autodetect the MSTest installation. Prior to TeamCity 9.1 the MSTest location was reported as system properties: %\system.MSTest.8.0%, %\system.MSTest.9.0%,%\system.MSTest.10.0%,%\system.MSTest.11.0%,%\system.MSTest.12.0%,%\system.MSTest.14.0% that referred to MSTest 2008, 2010, 2012, 2013, 2015 correspondingly. Since TeamCity 9.1 system parameters of the %\system.MSTest.xx.yy% format were changed to configuration parameters of the %\teamcity.dotnet.mstest.xx.yy% format. If system properties are required for the build, the mstest-legacy-provider plugin can be used.
List assembly files
A list of assemblies to run MSTests on. Will be mapped to /testcontainer:file argument.
MSTest run configuration file
Specify a MSTest run configuration file to use (/runconfig:file).
MSTest metadata
Enter a value for /testmetadata:file argument.
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 /test: arguments Check Add /unique commandline argument to add /unique argument to MSTest.exe
Results file
Enter a value for /resultsfile:file commandline argument.
Additional commandline parameters
Enter additional commandline parameters for MSTest.exe
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