|
Projects tab > <Project name> Each project has a dedicated page. This page contains the following tabs:
This page may also contain custom artifact-based tabs. This section covers: Overview TabOverview tab contains a table which represents a list of all the project build configurations. Statistics TabThe charts show code coverage, duplicates and inspection results, and number of code lines if they are included in the project build configurations. Additionally, you can extend the statistics output with custom charts.
Configuring Pre-defined Statistics ChartsBy default, Statistics tab shows charts for all build configurations in the current project, which have coverage, duplicates or inspections data. But this behavior may be configured on per-project level. You can disable charts of particular type at all, or specify build configurations to be used in the chart. The configuration is done in <TeamCity data directory>/config/<project_name>/plugin-settings.xml file, with some XML coding. A similar format is used for all types of pre-defined graphs; only the name of top-level XML tag differs:
For example, consider code coverage charts configuration. To disable all code coverage charts on the page, use the following syntax: <coverage-graph enabled="false"/>
To show code coverage chart, which relates only to particular build configuration, use the following syntax: <coverage-graph enabled="true"> <build-type id="bt234"/> <build-type id="bt236"/> </coverage-graph> In the code example above, bt234 and bt236 values relate to build configuration identifiers.
The same syntax and principles apply to other pre-defined types of charts. Configuring Custom ChartsSee Custom Chart#ProjectLevelCharts page for details of custom charts configuration. Custom Artifact-based TabsIt is possible to configure an artifact-based tab for the Project page; that is, the content of this tab will be provided using artifacts of a particular build. To configure such a tab, you need to add a corresponding section to <TeamCity data directory>/config/<project_name>/plugin-settings.xml file: <report-tabs>
<report-tab buildTypeId="bt15" basePath="." startPage="coverage.txt" title="Coverage summary" >
<revisionRule name="lastSuccessful" />
</report-tab>
</report-tabs>
The report-tab tag is quite similar to the one described in Including Third-Party Reports in the Build Results but you have to specify the build, which artifacts will be shown on the tab the following way:
See Also:
|