Combine coverage files

Combine coverage files

Hello,

i want to see the overall coverage of 2 or more coverage files. I try to combine all coverage files in a directroy to one coverage file using the command line statement.

ncoverexplorer.console *.xml /s:merged.xml

I use Ncover 3.3.2. an get the error message see below.

What wrong? I can send you the coverage files if it helps you to find the error.

Thanks for your help. M .Insberg

Error message:

C:\Program Files\NCover> ncoverexplorer.console *.xml /s:merged.xml NCoverExplorer.Console Complete v3.3.2 x86 (Administrator) (c) 2007 - 2009 Gnoso Inc. http://www.ncover.com/

Processing report settings from the command line.

-- Top-level exception (System.Exception) An error occurred while loading your coverage file: Object reference not set to an instance of an object. -- Stack Trace at NCover.Framework.Reports.ReportingProcessor.CreateCoverageView(List1 file names, ICoverageReportSettings sett) at NCover.Framework.Reports.ReportingProcessor.Process() at NCoverExplorer.Console.EntryPoint.Main(String[] args) -- Inner exceptions Object reference not set to an instance of an object. -- Stack Trace at NCover.Framework.Models.NCover3.NCover3XmlCoverageModel.AddFilter(ICoverageModelFilter item) at NCover.Framework.Models.NCover3.NCover3XmlCoverageModel.CreateFilter(Boolean doNotAppend) at NCover.Framework.Models.NCover3.NCover3XmlCoverageModel.CreateFilter() at NCover.Framework.Models.Merge.MergeCoverageModel.AppendFilters(ICoverageModel model) at NCover.Framework.Models.Merge.MergeCoverageModel..ctor(ICoverageModel model, MergeFilterMode mode) at NCover.Framework.Utilities.CoverageLoader.Merge(ICoverageView originalView, List1 paths, MergeFilterMode mode) at NCover.Framework.Utilities.CoverageLoader.Merge(List1 paths, MergeFilterMode mode) at NCover.Framework.Reports.ReportingProcessor.CreateCoverageView(List1 filenames, ICoverageReportSettings sett)


RE: Combine coverage files

That looks like a bug that we fixed for NCover 3.4, which is due out this week. If you'd like access to a prerelease, send us an email at support@ncover.com and we can forward the prerelease download links on to you.