Command Line Tools

Use NCover’s NCover.Console and NCover.Reporting command line tools to measure, merge, analyze, and report code coverage.

NCover.Console – Code Coverage Measurement

NCover.Console is a command line tool that can be utilized to execute an application, Windows Service, or IIS application and gather coverage data from the execution.

Basic Usage

NCover.Console [NCover Parameters] <Program to Cover> [Program Parameters]

All parameters that do not start with // will be passed to the profiled application. So, for example, running

NCover.Console //log-file MyLog.log MyApp.exe /?

would run code coverage on the call

MyApp.exe /?

while outputting log information to the file MyLog.log in the current directory.

Options

See the Command Line Flags for an exhaustive reference of the options available within NCover.Console.

NCover.Reporting – Code Coverage Reporting and Analysis

NCover Reporting is a command line tool that can be utilized to execute an application, Windows Service, or IIS application and gather coverage data from the execution.

Basic Usage

NCover.Reporting <Coverage Files> [Program Parameters]

Every parameter that is not an NCover Reporting parameter will be treated as a coverage file.

Options

See the Command Line Flags for an exhaustive reference of the options available within NCover.Reporting.

Questions? Comments?

Contact us.