The custom NAnt build tasks that shipped with NCover 3.0 had many differences and improvements from the NCover 2.1 version. Unfortunately, although the <ncover /> task remained backward compatible, the <ncoverexplorer /> task did not. Moreover, while the <ncover /> task is backward compatible, many of its properties were deprecated. This article will explain some of the common pitfalls and 'gotchas' encountered when upgrading from the NCover 2.1 NAnt tasks to the NCover 3.0 NAnt tasks.
Migrating an NCover 2.1 task to an NCover 3.0 task
assemblyList="" autoExclude="" commandLineArgs="" commandLineExe="" coverageFile="" coverageHtmlDirectory="" coverageType="" excludeAttributes="" fileExclusionPatterns="" logFile="" logLevel="" methodExclusionPatterns="" profiledProcessModule="" profileIIS="" profileService="" program="path to ncover console" projectName="" registerProfiler="" serviceTimeout="" symbolSearchPolicy="" typeExclusionPatterns="" workingDirectory=""> {build.path}">
The following task is equivalent to the one above and has been completely migrated to the NCover 3.0 format.
includeAssemblies="" autoExclude="" testRunnerArgs="" testRunnerExe="" coverageFile="" htmlReportDir="" coverageType="" excludeAttributes="" excludeFiles="" logFile="" logLevel="" excludeMethods="" coverChildProcess="" profileIIS="" profileService="" projectName="" registerProfiler="" serviceTimeout="" symbolSearchLocations="Registry, SymbolServer, BuildPath, ExecutingDir" excludeTypes="" workingDirectory=""> {build.path}">
Migrating an NCover 2.1 task to an NCover 3.0 task
failCombinedMinimum="true" failMinimum="true" filter="" htmlReportName="htmlreportname.html" mergeFileName="" minimumCoverage="70" outputDir="" projectName="" reportType="ModuleClassSummary" satisfactoryCoverage="80" satisfactoryFunctionCoverage="96" showExcluded="true" sort="" xmlReportName="xmlreportname.xml" />
The following task is equivalent to the one above and has been completely migrated to the NCover 3.0 format.
Conversion examples: v2.1 " " to v3.0 " "
Assembly *.Tests Assembly .*\.Tests True
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
Conversion examples: v2.1 report functionality to v3.0 " "
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
outputDir="\coverage\reports\build4356" />
The v2.0 project above is equivalent to the v3.0 project below.
Conversion examples: v2.1 "satisfactoryCoverage" to v3.0 " "
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
Conversion examples: v2.1 "minimumCoverage" to v3.0 " "
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.
The v2.0 project above is equivalent to the v3.0 project below.