I wanted to put together some notes about CruiseControl.Net and MSTest to have it as reference:
First, to be able to generate reports the following element is required on ccnet.config file.
this element is used to create the log files read by the CruiseControl.NET web page, if it isn't defined the web page will throw the following error:
Request processing has failed on the remote server: Unable to find Log Publisher for project so can't find log file.
To view the MSTest report, we need to add the result file in ccnet.config to merge the content in the build report, for example :
<executable>C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe</executable>
Include the MSTest plugin to generate the report on the web page, for example dashboard.config file
And include the xls file for MSTest report on ccservice.exe.config/ccnet.exe.config
<!-- Specifies the stylesheets that are used to transform the build results when using the EmailPublisher -->
The xls used on the above example is the one included in ccnet installation. I tested the report generation running tests on VS 2010 and VS 2008 and both reports are generated correctly. The only thing that caused issues was having MSTest on the path windows environment variables on a computer that has both VS 2010 an VS 2008
Also, if MSTest needs to connect to external resources, like accessing remote files or connecting to SQL Server, make sure the account that runs CruiseControl.Net Server windows service (by default is Local System Account) has access to those resources.