NAnt <ncoverreporting> task
NAnt <ncoverreporting> task
Hi,
We use cuisecontrol.net version : 1.4.4.83 with NAnt 0.86.
So, until our unit test process, we call many unit tests assemblies like :
<ncover program="C:\Program Files\NCover\NCover.Console.exe"
projectName="Advanced Framework code covering"
testRunnerExe="${AdvFrameworksWorkingFolder.dir}\nunit-console.exe"
testRunnerArgs="/noshadow "${AdvFrameworksWorkingFolder.dir}\NI.Framework.RuleEgine.UnitTest.exe" /xml "${BaseDirectory.dir}/${BuildLogs.dir}/NI.Framework.RuleEgine.UnitTest.xml""
coverageFile="${BaseDirectory.dir}/${BuildLogsCoverage.dir}/NI.Framework.RuleEgine.UnitTest_coverage.xml"
excludeAssemblies="nunit*.*;NCover.Test.*;NCover.Framework.XmlSerializers"
/>
At the end, of this tasks, we have some covering results file, like it : CommonFrameworksTests_coverage.xml NI.Business.IntegrationTests.SoaSystemTests_coverage.xml NI.Framework.Soa.UnitTest_coverage.xml
After it, we call this task :
When i call this task, we have this error :
[ncoverreporting] NCover Reporting Complete Trial v3.2.0 x86 (Administrator)
[ncoverreporting] Merging and Reporting for NCover
[ncoverreporting] Copyright (c) 2007 - 2009 Gnoso Inc.
[ncoverreporting] License Key: 9GVH1RPCB2PP03AU
[ncoverreporting] http://www.ncover.com
[ncoverreporting]
[ncoverreporting] Processing report settings from 'c:\Temp\tmp4EEB.tmp'
[ncoverreporting] Starting to create reports.
[ncoverreporting] -------------------------------------------------------------------------------
[ncoverreporting] ---- Top level exception: System.Collections.Generic.KeyNotFoundException
[ncoverreporting] The given key was not present in the dictionary.
[ncoverreporting] at System.ThrowHelper.ThrowKeyNotFoundException()
[ncoverreporting] at System.Collections.Generic.Dictionary2.get_Item(TKey key)
[ncoverreporting] at NCover.Framework.Models.Trends.TrendCoverageReport.ProcessVisitCountSum()
[ncoverreporting] at NCover.Framework.Models.Trends.TrendCoverageReport.CreateReportFormat(ICoverageView view, IReportGen
erateSettings sett, IReportOutputData report)
[ncoverreporting] at NCover.Framework.Models.Trends.TrendCoverageReport.CreateAndSaveReportFormat(ICoverageView view, IRe
portGenerateSettings sett, IReportOutputData report, Stream stream)
[ncoverreporting] at NCover.Framework.Reports.ReportWriters.XsltReportWriter.CreateReport(ICoverageView view, IReportOutp
utData report, IReportGenerateSettings sett, String finalFilePath, String finalProjectName)
[ncoverreporting] at NCover.Framework.Reports.ReportBuilder.CreateReports(ICoverageView view, IReportGenerateSettings gen
, Action
1 messageCallback)
[ncoverreporting] at NCover.Framework.Reports.ReportingProcessor.Process()
[ncoverreporting] at NCover.Reporting.ReportMain.RunReport(String[] args, IOutputWriter output)
[ncoverreporting] Execution Time: 9,372 ms
[ncoverreporting] -------------------------------------------------------------------------------
[ncoverreporting]
[ncoverreporting]
BUILD FAILED - 0 non-fatal error(s), 15 warning(s)
So, for one or two xml files, we have no problem to create the report. But as soon as, we try to create the report on the three xml covering files, we have this error ... Please, could you help us ?
RE: NAnt <ncoverreporting> task
I've elevated this to a support case and sent you an email about it.
This bug will be fixed in 3.2.4
RE: NAnt <ncoverreporting> task
So when is this fix expected to be released?
RE: NAnt <ncoverreporting> task
has already been released in 3.2.4 www.ncover.com/download/current