Merging NCover reports which contain data from multiple asse

Merging NCover reports which contain data from multiple asse

Hello,

We're using NUnit 2.2.9, NCover 1.5.4 and NCoverExplorer 1.3.5.1921.

Our tests are included in assemblies. It is not possible for some reasons to run nunit with multiple assemblies (we need to set some settings in the .config files for each assembly, but NUnit doesn't support multiple .config files).

Therefore we're generating several ncover xml reports using foreach construct in our NAnt script.

Say, we have two assemblies A and B which also use (reference and run code) from assembly called CommonAssembly. The tests run in A and B assemblies do some code coverage of CommonAssembly. If I don't do any limitation in ncover for which assemblies the code coverage should be computed than I see that ncover results for A and B contain information about coverage of CommonAssembly.

After all ncover reports are ready, we start the NCoverExplorer which merges these reports. I was expecting NCoverExplorer to intelligently merge information from ncover reports of assemblies A and B (and CommonAssembly), so that we receive not only the information, how much code of CommonAssembly was tested by tests in CommonAssembly, but how much code of CommonAssembly was tested by tests in A, B and CommonAssembly.

NCoverExplorer actually merges the information about CommonAssembly, but obviously wrong.

Here are the original ncover reports

Assembly A (part which concerns CommonAssembly)

<method name=".ctor" class="CommonAssembly.Framework.Collections.Similarity.Tanimoto">

<seqpnt visitcount="1" line="18" column="3" endline="18" endcolumn="22" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

<seqpnt visitcount="1" line="18" column="22" endline="18" endcolumn="23" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

<seqpnt visitcount="1" line="18" column="23" endline="18" endcolumn="24" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

</method>

<method name="Similarity" class="CommonAssembly.Framework.Collections.Similarity.Tanimoto">

<seqpnt visitcount="0" line="32" column="3" endline="32" endcolumn="4" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

<seqpnt visitcount="0" line="33" column="4" endline="33" endcolumn="18" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

<seqpnt visitcount="0" line="34" column="4" endline="34" endcolumn="24" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs" />

<seqpnt visitcount="0" line="37" column="4" endline="37" endcolumn="47" excluded="false" document="S:\products\engine\trunk\Framework\Collections\Similarity\Tanimoto.cs</