Menu

#17 NCoverReport - dox for command line args is wrong

open
nobody
None
5
2013-01-09
2005-08-18
Anonymous
No

I'm running ncoverreport on the command line. The
instructions for the command line/script don't exist so
I'm following the nant ones, but I get an exception.

In the file /docs/website/tasks/ncoverreport.html it
says the arguments are called "reportname", "history"
and "actuals". Using these I get an exception:
C:\ncover-1.0.1\ncoverreport\bin\Debug\ncoverreport
/report-name:"
NCover" /minimum:60 /Actual:"actual.xml"
/history:"history.xml"

Unhandled Exception: System.ArgumentException:
Requested value history was not found.
at System.Enum.Parse(Type enumType, String value,
Boolean ignoreCase)
at NCover.Utilities.Arguments.ParseArgument(String
arg, CommandLineArgument&key, String& value) in
C:\tools\eclipse3M6\workspace\ncover\src\NCover\Utilities
\Arguments.cs:line 192
at NCover.Utilities.Arguments.Parse(String[] args)
in
C:\tools\eclipse3M6\workspace\ncover\src\NCover\Utilities\Arguments.cs:line
124
at NCover.CommandLine.NCoverReport.Main(String[]
args) in
C:\tools\eclipse3M6\workspace\ncover\ncoverreport\ncoverreport.cs:line
29

After much digging around the source code, I discovered
the args should be "report-name", "history-file", and
"actual".

The documentation is wrong.

Discussion


Log in to post a comment.