2010-01-12 69 views
0

我已經試過上市here的步驟,但我仍然不能得到partcover產生其他任何輸出比:另一個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 

有沒有人有可能幫助什麼建議?謝謝!

回答

1

OK,這裏是我做過什麼來解決這個問題,除了上述步驟:

添加一個設置文件: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現在對我來說似乎很好...