NCover Documentation

The example below serves as a guide for structuring a coverage configuration file. A list of all parameters and tags for the configuration can be found here.

<CoverageReportSetting version="3">
<ClearCoverageFilters>true</ClearCoverageFilters>
<CoverageDataPaths>
<CoverageDataPath>C:\Users\david\Desktop\coverage\coverage.nccov</CoverageDataPath>
</CoverageDataPaths>
<CoverageTrendPath/>
<MinimumCoverage/>
<CoverageFilters>
<CoverageFilter filterruledata=".myAssemblies" filtertype="Assembly" regexrule="true" include="true" version="Default"/>
<CoverageFilter filterruledata=".yourAssemblies." filtertype="Assembly" regexrule="true" include="false" version="Default"/>
</CoverageFilters>
<Hide>None</Hide>
<IgnoreFailedBuilds>false</IgnoreFailedBuilds>
<LoadTrendPath>Hide</LoadTrendPath>
<MergedCoverageDataPath/>
<MergeFilterMode>Default</MergeFilterMode>
<MaxFailedToShow>999</MaxFailedToShow>
<NumOfTopUncoveredToReport>50</NumOfTopUncoveredToReport>
<OutputPath/>
<ProjectName>NCover report sample config</ProjectName>
<RebasedPaths/>
<ReportDataFilter/>
<ReportInvalidFiles>true</ReportInvalidFiles>
<Reports>
<Report>
<Format>Html</Format>
<OutputPath>c:\temp\report1</OutputPath>
<ReportType>FullCoverageReport</ReportType>
</Report>
<Report>
<Format>Html</Format>
<OutputPath>SS2\fullcoveragereport</OutputPath>
<ReportType>FullCoverageReport</ReportType>
</Report>
<Report>
<Format>Html</Format>
<OutputPath>SS
3\fullcoveragereport</OutputPath>
<ReportType>FullCoverageReport</ReportType>
</Report>
</Reports>
<SortBy>Name</SortBy>
<SatCoverageFromMinCoverage>true</SatCoverageFromMinCoverage>
<WorkingDirectory>C:\Users\david\Desktop\coverage</WorkingDirectory>
</CoverageReportSetting>

If you still need technical assistance, we can help:

Submit A Support Ticket

Try NCover Free Contact Us Online