To help you track the condition of your projects and individual build configurations over time, TeamCity gathers statistical data across all their history and displays it as visual charts. The statistical charts can be divided into the following categories:
- Project-level statistics available at the Project home page | Statistics tab.
- Build Configuration-level statistics available at the Build Configuration home page | Statistics tab.
- Use the branch filter to view the results from the specified branches only (available since TeamCity 9.0)only
- Download each chart data in the CSV format using the icon
- Configure the Y-axis settings for each chart using the icon in the upper left corner
- Select a time range for each type of statistics from the Range drop-down list.
- Filter the information by data series, for example, by the Agent name or result type.
- View average values by selecting the Average check box.
- Filter out failed builds and show only successful builds with the unchecked Show Failed option.
- View the build summary information when you mouse-over a build and navigate to the build results page using the build number link.
For each project TeamCity provides visual charts with statistics gathered from all build configurations included in the project over the entire history of the project. These charts show statistics for code coverage, code inspections and code duplicates for build configurations within the project when the corresponding data is available for the builds of this project's configurations.
You can adjust the set of project-level charts in the following ways:
- Disable charts of particular type
- Specify build configurations to be used in the chart
- Add custom project-level charts (a separate page)
- Customize pre-defined project-level charts (a separate page)
Anchor BCStatistics BCStatistics Anchor buildTypeStatistics buildTypeStatistics
Build Configuration Statistics
Green, grey and red dots show the number of tests (JUnit, NUnit, TestNG, etc.) that passed, were ignored, or failed in the build respectively. All invocations of the same test within a single build are counted as one test. The information about individual tests is available on the build results page. Note that since TeamCity 9.0, the way TeamCity counts tests has changed.
This chart tracks the total size of all artifacts produced by the build.
Time to fix tests
Time to fix a test is reported for a finished build with a newly failed test when a subsequent build where this test passed finishes (this means that the metric can updated in a finished build on new builds finishing). The time is calculated as the difference between the start times of these builds.
This chart tracks the maximum amount of time it took to fix the tests of the a particular build. If not all build tests were fixed, a red vertical stripe is displayed.
You can also find some useful statistics for a particular test: Test duration graph on "Test History" page, which allows comparing the amount of time it takes individual tests to run on the builds of this build configuration. For more details, please refer to related page.
It is possible to customize project-level charts or/and configure your own statistical charts, e g. to display the total build duration, including the checkout time, the duration of all build stages, artifact resolving and artifact publishing or a chart displaying the duration of each build stage, etc. See a dedicated page for details