另一个PartCover空报告问题

时间:2010-01-12 17:34:21

标签: nunit partcover nunit-console

我已经尝试了here列出的步骤,但我仍然无法获得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
  4. 这是我的命令行:

    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
    

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

1 个答案:

答案 0 :(得分:1)

好的,除了上面的步骤之外,我还采取了以下措施来解决问题:

添加设置文件: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现在似乎对我很好......