TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

MSTest Support

Last modified: 20 April 2023

For .NET runners TeamCity provides support for MSTest 2005/2008/2010 testing framework via parsing of the MSTest results file (.trx file).

The most handy way to report tests results for MSTest is using Build Script Interaction with TeamCity. This method is applicable for any build runner. In addition, for sln2008 TeamCity provides possibility to enable and customize MSTest parameters via web UI, without using service messages.

Supporting MSTest with Service Messages



TeamCity reports test results from MSTest 2005/2008/2010 parsing results .trx-file. To provide .trx-file, send the following service message:

Autodetection of MSTest



Build agent will add %\system.MSTest.8.0%, %\system.MSTest.9.0% or %\system.MSTest.10.0% system property (see Build Agent Configuration for detail) in cases MSTest.exe from Microsoft Visual Studio 2005/2008/2010 is found on the build agent running system.