views:

31

answers:

2

Hi

I need to load coverage report from multiples test source, but if I set multiple dlls (two of them test the same class) in TargetArgs, the coverage data is overwritten with the results of the last dll.

How can I add the results from multiples dll testing the same class?

Here is an example of my partcover config file

<PartCoverSettings>
  <Target>c:\NUnit\nunit-console.exe</Target> 
  <TargetWorkDir>c:\MyProject\Testing</TargetWorkDir> 
  <TargetArgs>ApplicationServices.Test.dll Integration.Test.dll</TargetArgs> 
  <Rule>+[MyProject.*]*</Rule> 
  <Rule>-[*.Test]*</Rule> 
</PartCoverSettings>

Thanks In Advance

A: 

That should actually work. I do the same - run multiple test assemblies and get coverage output. I do it from the command line rather than config file though.

Have you double checked that your rules are correct?

GiddyUpHorsey
HiThe problem isn't run multiple test assemblies. That works, but the last assembly overwrite the coverage for the first, if the two assemblies cover the same class
A: 

Did it overwrite the first or did it merge results in with the first?

Shaun Wilde
Merge but overwrite the coverage when the two assemblies cover the same class