NCover Documentation

IIS

Enterprise Edition Feature

Usage: //iis [optional executable path]

Rather than specifying a program to run coverage on, you can use this flag to profile web applications. NCover will start the W3C service (stopping first if currently running) and profile coverage until the W3C service is stopped.

Example: NCover.Console //iis or NCover.Console //iis TestRunner.exe

Windows Services

Enterprise Edition Feature

Usage: //service [service name] [optional executable path]
or
//svc [service name] [optional executable path]

Rather than specifying a program to run coverage on, you can use this flag to cover a Windows service. NCover will start the service (stopping it first if already running) and profile coverage until the windows service is stopped.

Example: NCover.Console //service MyService.exe or NCover.Console //svc MyService.exe or NCover.Console //svc MyService.exe TestRunner.exe

Service Timeout

Enterprise Edition Feature

Usage: //st [timeout in seconds]

Specifying a service timeout will force NCover to only collect coverage data for the specified amount of time. The amount of time specified is in seconds, and once that time has elapsed, NCover will stop IIS or the Service and generate the output type specified.

Example: NCover.Console //iis //st 60

If you still need technical assistance, we can help:

Submit A Support Ticket