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 Code Central 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 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 from Code Central or Desktop

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.

Exporting Coverage Data from Collector

During normal operation of Collector, data is synced to Code Central as soon as collection is completed, and not stored locally. So, an error while attempting to export coverage data from Collector is expected -- depending on the timing, the data is probably no longer there.

We recommend running NCover Export (and NCover Report) from Code Central, which is where coverage data is stored until deleted or archived.

If you have a specific requirement to export the v3xml data from Collector instead of Code Central, you must pause syncing to Code Central before before coverage collection starts, and then re-enable syncing after NCover Export is done.

If you still need technical assistance, we can help:

Submit A Support Ticket

Try NCover Free Contact Us Online