Mark Needham

Thoughts on Software Development

NCover – Requested value '/r' was not found

with one comment

I've been trying to integrate NCover into our build and probably making life harder for myself than it needs to be.

The title refers to the error message that I was getting when trying to run the ncover nant task on version 1.0.1 of NCover earlier today.

1
2
3
4
5
6
7
8
[ncover] Starting 'C:\Program Files\NCover\ncover-console.exe 
(//r "\long\path\to\tmp392.tmp.ncoversettings" )' in 'C:\my-project\trunk\src'
[ncover] Unhandled Exception: System.ArgumentException: Requested value '/r' was not found.
[ncover]    at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
[ncover]    at NCover.Utilities.Arguments.ParseArgument(String arg, 
CommandLineArgument& key, String& value) in C:\to
ols\eclipse3M6\workspace\ncover\src\NCover\Utilities\Arguments.cs:line 192
...

After some inspired Googling my colleague managed to work out that the problem was that you can't pass a settings file path which has spaces in to the ncover executable, hence the error message. It's the same problem in handling spaces that I mentioned in an earlier post on msbuild.

The advice on the forum was to upgrade to one of the more recent versions where the bug has been fixed. Downloads of the free version of NCover (it becomes paid for at version 2.0) are available here.

Written by Mark Needham

August 19th, 2008 at 9:18 pm

Posted in Build

Tagged with , , ,

One Response to 'NCover – Requested value '/r' was not found'

Subscribe to comments with RSS

  1. Hi Mark,

    If you have a requirement for a free code coverage tool that works with .NET 3.5 (the legacy versions of NCover have issues) then PartCover may be a better option:

    http://sourceforge.net/projects/partcover

    The reports it produces are a little rudimentary though.

    Cheers,
    Matt

    Matt Dunn

    20 Aug 08 at 4:56 pm

Leave a Reply