0

我需要从多个测试源加载覆盖率报告,但如果我在 TargetArgs 中设置多个 dll(其中两个测试同一个类),覆盖率数据将被最后一个 dll 的结果覆盖。

如何添加多个 dll 测试同一类的结果?

这是我的 partcover 配置文件的示例

<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>

提前致谢

4

1 回答 1

1

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?

于 2010-07-17T05:26:33.013 回答