NCover Documentation

Importing Coverage Data

You can import your NCover 3 coverage data file for viewing in Code Central using a command line utility included in your NCover install.

This functionality is for individual coverage files only; importing project and trend files is not supported.

Open a Windows Command Prompt and enter "ncover import" to see the coverage file export usage and syntax.

Syntax - NCover Import [<file.nccov>] <project name>

Project name - The NCover 4 project to import from.

File.nccov - The name and path of the XML coverage file.

Default Behavior

Coverage file name -- Required. If you do not specify a coverage file name, NCover import will return an error.

Project name -- Optional. If you do not specify a project name, NCover import will create one based on the coverage file name.

Exporting Coverage Data

You can also export your coverage data file for viewing in NCover 3 using the included command line utility.

This functionality is for individual coverage files only; exporting project and trend files is not supported.

Open a Windows Command Prompt and enter "ncover export" to see the coverage file export usage and syntax.

Syntax - NCover Export [-execution <execution name>] [-file <file.nccov>]

Project name - The NCover project to export from.

Execution match - Find by caption, build ID, or ending date/time.

File.nccov - The name and path of the output XML coverage file.

Default Behavior

Project name -- Required. If you do not specify a project name parameter, NCover export will return an error.

Execution match parameter -- If you do not specify a match parameter, NCover will export the last completed execution.

Output coverage file name -- If you do not specify a file name, NCover will use the project name and the current execution of the project specified in the project name parameter.

If you still need technical assistance, we can help:

Submit A Support Ticket

Try NCover Free Contact Us Online