另一个 PartCover 空报告问题

发布于 2024-08-18 03:37:02 字数 2532 浏览 3 评论 0原文

我已经尝试了此处列出的步骤,但我仍然无法得到partcover 生成除以下之外的任何输出:

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

这是我所做的:

  1. 安装 2.2 而不是 2.3
  2. Ran corflags /Force /32bit+ PartCover.exe
  3. Ran corflags /Force /32bit+ 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

有人有任何可能有帮助的建议吗?谢谢你!

I've tried the steps listed here, but I still can't get partcover to generate any output other than:

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

Here is what I've done:

  1. Installed 2.2 instead of 2.3
  2. Ran corflags /Force /32bit+ PartCover.exe
  3. Ran corflags /Force /32bit+ PartCover.browser.exe

Here is my command line:

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

When I run that command, here is the output I get:

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

Does anyone have any suggestions that might help? Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十雾 2024-08-25 03:37:02

好的,除了上面的步骤之外,这就是我为解决该问题所做的操作:

添加一个设置文件: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现在对我来说似乎工作得很好......

OK, here is what I did to fix the problem, in addition to the steps above:

Add a settings file: settings.xml

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

Run with this command line:

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

And that produces an XML file.

I also didn't need to downgrade to 2.2. 2.3 seems to work fine for me now...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文