Dashboard > CruiseControl.NET > ... > Using CruiseControl.NET with other applications > Using CruiseControl.NET with MSTest
Using CruiseControl.NET with MSTest Log In View a printable version of the current page.  
CruiseControl.NET documentation for latest CI builds
Added by Owen Rogers , last edited by Owen Rogers on Jan 25, 2007  (view change)

Integrating MSTest into your build

You can use MSTest.exe to execute your MSTest unit tests from the command-line. You can find a list of the MSTest.exe command-line options here. You will need to using the /resultsfile: command-line option in order to get MSTest to log the test results to file so that they can be included in the build report.

MSTest.exe can be invoked either from your MSBuild script, your NAnt script or directly from CruiseControl.NET by using an <exec> task.

Integrating MSTest results into the Build Report

In order to get the MSTest results to show up in the WebDashboard build report, you will need to merge the xml output file generated by MSTest into the build log. You can do this using the [Merge File Task]. Lastly, you will need to modify your dashboard.config file in order to include a reference to the MsTestSummary.xsl stylesheet like this:

<buildReportBuildPlugin>
	<xslFileNames>
		...
		<xslFile>xsl\MsTestSummary.xsl</xslFile>
		...
	</xslFileNames>
</buildReportBuildPlugin>

On his blog, Richard has included some more detailed instructions and tips for integrating CCNet and MSTest.

Powered by a free Atlassian Confluence Open Source Project / Non-profit License granted to ThoughtWorks, Inc.. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators