You are viewing the current version of this page. (v. 3)
QuickBuild2 Documentation
|
To publish NCover reports, you need:
After doing this, QuickBuild will generate the NCover reports automatically.
Generate NCover XML ReportsThe NCover SymbolModuleNamespaceClassMethod XML reports can be generated from NCover command tool or msbuild or nant. Below we are using msbuild to generate the coverage report: <UsingTask TaskName="NCover.MSBuildTasks.NCover" AssemblyFile="C:\Program Files\NCover\Build Task Plugins\NCover.MSBuildTasks.dll" /> <UsingTask TaskName="NCover.MSBuildTasks.NCoverReporting" AssemblyFile="C:\Program Files\NCover\Build Task Plugins\NCover.MSBuildTasks.dll" /> <Target Name="Coverage"> <NCover ToolPath="C:\Program Files\NCover\" TestRunnerExe="$(NUnitPath)\nunit-console.exe" TestRunnerArgs="TestAssembly1.dll TestRunner2.dll" CoverageFile="Coverage.xml"/> </Target> <PropertyGroup> <Reports> <Report> <ReportType>SymbolModuleNamespaceClassMethod</ReportType> <Format>Xml</Format> <OutputPath>$(outputDir)\smncm.xml</OutputPath> </Report> </Reports> </PropertyGroup> <Target Name="CreateCoverageReports"> <NCoverReporting ToolPath="C:\Program Files\NCover\" CoverageDataPaths="Coverage.xml" OutputReport="$(Reports)" /> </Target> Publish NCover ReportsAdd Publish NCover Report step to your build workflow. If you have several report sets, you can add several steps with different report set names. Reference this page for more details.
|