0

i've downloaded a free version of ncover here -> http://sourceforge.net/projects/ncover/

but unortunately i am unable to find steps on how to use it in the command line.

any help would be great, thanks!

little_gurl
  • 87
  • 2
  • 6

3 Answers3

1

In case it helps somebody else. I was able to get NCover 1.5.8 (one that comes with TestDriven.NET) working nicely with nunit.

NCover.Console.exe nunit-console-x86.exe /noshadow yourAssembly.dll 

The only trick was to makes sure CoverLib.dll COM component is properly registered

regsrv32 CoverLib.dll

Otherwise you'd get "Profiled Process Terminated" error, and then making sure we are passing /noshadow parameter to nunit, otherwise NCover would fail to load symbols for the assembly (at least in my case).

Sebastian K
  • 6,235
  • 1
  • 43
  • 67
1

Have a look at this question.

There are two free versions of NCover available: The SourceForge one (which is discontinued and not working well as Try's comment on Ira Baxter's answer shows) and the Gnoso one (which used to be free and has gone commercial after version 1.5.8). Get the latter one from here.

Community
  • 1
  • 1
The Chairman
  • 7,087
  • 2
  • 36
  • 44
0

Have a look at this question.

Steps to solve

1.Need to monitor the execution of Test cases Using ncover-console.exe

"[path]\NCover.Console.exe" "[path]\nunit- console.exe" "E:\Myapp\test.sln" /xml="[PATH]\TestResult.xml"

This will create a .nccov file

2.Create coverage html report from .nccov file using NCover.Reporting.exe

"[path]\NCover\NCover.Reporting.exe" "[path]\coverage.nccov" //or FullCoverageReport:Html:output

Community
  • 1
  • 1
Sumeshk
  • 1,980
  • 20
  • 33
  • hi is it necessary to have nunit console for this as I have used mbunit so is there any way to use ncover console with for mbunit tests – priya Oct 21 '13 at 07:38
  • @priya :hi , as i don't have much exposure in mbunit, since i am working with an organization once i am free i will have a look on it and let u know about mbunit – Sumeshk Oct 21 '13 at 10:54