NCover Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID ncover Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
0.3
Mar 03, 2010
1.319
Source Code
Issue Tracking
Maintainer(s)
Subversion
Open Issues
Michael Rooney (id: mcrooney)
Usage Installations 2013-Apr 716
2013-May 706
2013-Jun 719
2013-Jul 735
2013-Aug 709
2013-Sep 720
2013-Oct 728
2013-Nov 744
2013-Dec 717
2014-Jan 776
2014-Feb 761
2014-Mar 789

Archive and publish .NET code coverage HTML reports from NCover.

It is recommended to use instead the more flexible and robust HTML Publisher plugin, which was generalized from this plugin after its creation.

Screenshots

The post-build action when configuring a project:

 
The coverage project/build action which sends you to the archived HTML report:

 

Configuring the NCover Plugin

The NCover plug-in requires Hudson 1.312 or greater. If you are using an older version of Hudson, use its automatic upgrade feature first by visiting the "Manage Hudson" link on your Hudson dashboard and click the "Upgrade Automatically" button near the top.

  1. Install the NCover plugin (via Manage Hudson -> Manage Plugins -> Available, check "NCover", and click the "Install" button at the bottom)
  2. Configure your project's build script to generate NCover HTML reports (see below for an example with Gallio)
  3. Enable the "Publisher NCover HTML report" publisher
  4. Specify the HTML report directory which is generated by NCover, relative to the project workspace.
  5. Optionally change the report name to be displayed. Multiple reports can be specified separated by commas.

Generating NCover HTML reports

For generic help on this topic, see http://docs.ncover.com/how-to/create-ncover-reports/

When using Gallio, you can simply use the NCover runner. You'll need to pass two arguments to Gallio.Echo.exe. Make sure to replace the variables in caps with the actual path you want:

  • /runner:ncover3
  • /runner-property:NCoverArguments="//html HTML_DIR_NAME //at TRENDS_FILE"
    • The "//at TRENDS_FILE" is optional but will keep track of coverage over time and include graphs in your HTML report

An example command might look like:

 C:\Program Files\Gallio\bin\Gallio.Echo.exe "C:\path\to\your.dll"
    /runner:ncover3
    /runner-property:NCoverArguments="//html artifacts\coverage-html //at ncover3.trend"

Version History

Version 0.3 (Mar 3, 2010)

  • Update code for more recent Hudson

Version 0.2.6 (Jul 28, 2009)

  • Improve compatibility with older Java versions including 1.4
  • Remove debug logging that was ending up in the build log

Version 0.2.5 (Jul 16, 2009)

  • Allow for a report page to be named index.html instead of stomping over it
  • Add "Back to Hudson" link
  • Drop the filename extension from the tab names

Version 0.2.0 (UNRELEASED)

  • Allow specifying multiple HTML files to be shown by separating with commas, and show in tabs

Version 0.1.0 (UNRELEASED)

  • Initial release, allowing for archiving and displaying of NCover HTML coverage report directories.

Labels

Edit
plugin-report plugin-report Delete
plugin-dotnet plugin-dotnet Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment