MSTest Support
TeamCity provides support for MSTest 2005/2008/2010/2012/2013 testing framework via parsing of the MSTest results file (.trx file). Due to specifics of MSTest tool, TeamCity does not support on-the-fly test reporting for MSTest. All test results are imported after tests run has finished.
There are two ways to report test results to TeamCity:
Add MSTest runner as one of your build steps.
Configure XML Report Processing via build feature or via Build Script Interaction with TeamCity to parse the .trx reports that are produced by your build procedure.
The easiest way to set up MSTest tests reporting in TeamCity is to add MSTest build runner as one of the steps to your build configuration and specify there all the required parameters. Please, refer to MSTest page for details.
If the tests are already run within your build script and MSTest generates .trx reports, you can configure Build Script Interaction with TeamCity to parse the reports.
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/2012/2013 is found on the build agent running system.