TeamCity
 
You are viewing the documentation for an earlier version of TeamCity. View this page in the current documentation

MSTest Support

TeamCity provides support for MSTest 2005-2015 testing framework via parsing of the MSTest results file (.trx file). The appropriate Microsoft Visual Studio edition installed on the build agent is required.

Due to specifics of MSTest tool, TeamCity does not support on-the-fly test reporting for MSTest. All test results are imported after the tests run has finished.

There are two ways to report test results to TeamCity:

The easiest way to set up MSTest tests reporting in TeamCity is to add the Visual Studio Tests build runner as one of the steps to your build configuration and specify there all required parameters.

If the tests are already run within your build script and MSTest generates .trx reports, you can configure service messages to parse the reports.

See also

Administrator's Guide