path% when testing 64-bit applications) variable refers to the auto-detected path for NCover 3 on the build agent. Supply the path to the NCover 3 executable. NET Runtime fields to the values appropriate for your configuration. NET runtime version you're using, select the appropriate MSBuild tools version & run platform (x86 or 圆4). The default build target for your build will be executed if none is specified.īased on the. Optional: Enter the name of the build target you would like to use. Mono is not currently supported by NCover. Set the build runner option to MSBuild and provide a build file path. Your project is configured to collect coverage. Settings will appear when the window refreshes (see image below). For NCover.Reporting arguments, see the NCover.Reporting documentation.Ĭlick "Save" at the bottom of the page. For a complete list of NCover.Console arguments, refer to the NCover.Console documentation. Click the highlighted text that first appears to reveal a default argument demonstrating syntax. Supply any NCover.Console and NCover.Reporting arguments. Alternatively, you can provide the specific path, typically "C:\Program Files\NCover\" (or "C:\Program Files (x86)\NCover\ for 32-bit NCover on a 64-bit system). The %3.x86.path% (or %3.圆4.path% when testing 64-bit applications) refers to the auto-detected path for NCover 3 on the build agent. NET runtime fields to the values appropriate for your configuration. Set the build runner to NAnt and provide a build file path. See for more information about setting up other build runners.) NAnt Configuration NET builds, TC6 currently supports MSBuild and NAnt. From the runner setup window, select the build runner: NAnt or MSBuild. TeamCity's configurations differ slightly based on the build runner and unit testing framework used.
Install TeamCity 6 on the machine (instructions here). If you're using a different test framework, you should see the section on setting up NCover as a task of your build script rather than TC6 in order to import and view your coverage results.
Please keep in mind that automatic display of NCover reports in TC6 only works when using TeamCity's built-in NUnit test runner. This document follows the Project Setup > Build Template Setup flow in TC6. A full TeamCity configuration tutorial can be found on the TeamCity website. Note that this document provides only a setup tutorial for NCover with TC6, not a comprehensive setup for TeamCity. NET build framework (e.g., NAnt or MSBuild). Requirementsġ5 minutes, installation of Team City 6 (TC6), a. Measure your test quality and your team's progress by taking advantage of NCover's advanced code coverage features within TeamCity 6. Please visit Covering TeamCity for updated information.