我已经试过所列的步骤 在这里,, 但是我仍然不能得到partcover产生的任何产出:

<?xml version="1.0" encoding="utf-8"?>
<PartCoverReport ver="2.2.0.36423" />

这里是我做了什么:

  1. 安装2.2而不是2.3
  2. 跑corflags/力/32位+PartCover.exe
  3. 跑corflags/力/32位+PartCover.browser.exe

这里是我的命令行:

partcover --target nunit-console-x86.exe --target-args unittests.dll  --include +[*]* --output c:\temp\out.txt

当我运行该命令,这里的输出是我得到:

Start target
Wait results
NUnit version 2.5.0.9117 (RC)
Copyright (C) 2002-2008 Charlie Poole.\r\nCopyright (C) 2002-2004 James W. Newki
rk, Michael C. Two, Alexei A. Vorontsov.\r\nCopyright (C) 2000-2002 Philip Craig
.\r\nAll Rights Reserved.

Runtime Environment -
   OS Version: Microsoft Windows NT 6.0.6002 Service Pack 2
  CLR Version: 2.0.50727.4200 ( Net 2.0.50727.4200 )

ProcessModel: Default    DomainUsage: Single
Execution Runtime: net-2.0.50727.4200
.Gendarme v2.4.0.0
Copyright (C) 2005-2009 Novell, Inc. and contributors

Initialization: 1.1 seconds
unittests.dll: 2.4 seconds

One assembly processed in 3.5 seconds.
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.................................
Tests run: 1076, Errors: 0, Failures: 0, Inconclusive: 0 Time: 19.071907 seconds

  Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

Walk results

没有任何人有任何建议,可能会有帮助吗?谢谢你!

有帮助吗?

解决方案

好的,这里是我做了什么解决问题,除了上述步骤:

增加一个设定文件:settings.xml

<PartCoverSettings>
  <Target>nunit-console-x86.exe</Target>
  <TargetArgs>unittests.dll</TargetArgs>
  <Rule>+[*]*</Rule>
</PartCoverSettings>

运行这个命令行:

partcover --settings settings.xml --output out.xml

并产生一种XML文件。

我也不需要降到2.2.2.3似乎正常工作对我来说现在...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top