|
CruiseControl.NET : Using CruiseControl.NET with MSTest
This page last changed on Jan 25, 2007 by orogers.
Integrating MSTest into your buildYou 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 ReportIn 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. |
| Document generated by Confluence on Mar 14, 2009 02:55 |