CruiseControl.NET : Using CruiseControl.NET with NCover
This page last changed on Jan 16, 2005 by mroberts.
This page shows how you can integrate NCover, a code coverage tool, with NUnit into your CruiseControl .NET build for test coverage purpose. NCover is a code coverage analysis tool and it is designed to work with compiled shipping code.
In order to get the results of NCover included in the CruiseControl.NET build results, you will need to include a call to NCover in your NAnt build file. We recommend you use a NAnt frgament like this:
<exec program="tools\ncover\ncover.exe" workingdir="build\unittests" commandline="/c "..\..\tools\nunit\nunit-console.exe MyUnitTests.dll /xml:../MyUnitTests.dll-results.xml /nologo""/>
For a thorough example, look at the CruiseControl.NET source distribution and look at how we use NCover ourselves.File Merge Task. Your CruiseControl.NET Server config file will have something in it like :
<tasks> <merge> <files> <file>d:\sourceforge\ccnet\build\unittests\Coverage.xml</file> <!-- Other files to merge for your build would also be included here --> </files> </merge> </tasks>
If you are using the Web Dashboard, edit your web.config file and include the ThoughtWorks.CruiseControl.WebDashboard.Plugins.NCover.NCoverReportBuildPlugin Build Plugin.If you are using Project Report Web Application, edit your web.config file and include the Coverage.aspx Build Plugin.
|Document generated by Confluence on Jun 26, 2005 17:23|