GitHub Metric
Engineering
Code Coverage = Lines Covered by Tests / Total Lines of Code × 100
Code Coverage Trend tracks the percentage of code exercised by automated tests over time, measured per commit or release. It highlights whether new code is being adequately tested and whether coverage is improving or regressing. Sustained downward trends signal growing risk.
Code Coverage Trend
Code Coverage Trend tracks the percentage of code exercised by automated tests over time, measured per commit or release. It highlights whether new code is being adequately tested and whether coverage is improving or regressing. Sustained downward trends signal growing risk.
How to calculate code coverage trend
Why code coverage trend matters for GitHub users
A single coverage snapshot tells you very little - it is the trend that matters. Falling coverage alongside rising velocity means the team is shipping faster but with less safety net, increasing the probability of production incidents.
For GitHub-centric workflows, correlating coverage trends with deployment frequency reveals whether quality gates are keeping pace with delivery ambitions. Teams can use this to set evidence-based coverage targets rather than arbitrary thresholds.
Understand and act on code coverage trend with KPI Tree
Ingest coverage reports from your CI pipeline into the warehouse and connect them to KPI Tree. Build a metric tree linking coverage trend to bug fix rate and deployment rollback frequency.
Assign ownership to the platform or quality lead and configure trend-based alerts that fire when coverage declines over a rolling window.
Get started with your GitHub data
Pull metrics from GitHub directly through the Model Context Protocol.
Connect your existing warehouse where GitHub data already lands.
Our professional services team can build you turn-key AI foundations in a matter of weeks. Data warehouse on Snowflake/BigQuery, ELT with Fivetran, all modelled in dbt with a semantic layer.
Related GitHub metrics
Code Quality Trend Analysis
EngineeringMetric Definition
Code Quality Trend Analysis aggregates signals such as linting violations, cyclomatic complexity, code duplication, and static-analysis findings over time. It provides a longitudinal view of code health across repositories. Consistent improvement indicates maturing engineering practices.
Bug Fix Rate
EngineeringMetric Definition
Bug Fix Rate = Bugs Closed in Period / Total Open Bugs at Start of Period × 100
Bug Fix Rate measures the proportion of bug-labelled issues closed within a given period relative to the total number of open bugs. It reflects a team's capacity and prioritisation of quality work. A consistently low rate may signal under-investment in reliability.
Deployment Frequency
EngineeringMetric Definition
Deployment Frequency = Number of Deployments / Time Period
Deployment Frequency measures how often an organisation successfully releases to production. It is one of the four DORA metrics and a key indicator of delivery maturity. Elite teams deploy on demand, multiple times per day, while low performers deploy monthly or less frequently.
Repository Health Score
EngineeringMetric Definition
Repository Health Score is a composite metric that evaluates key health indicators for a GitHub repository, including documentation completeness, test coverage, CI configuration, dependency freshness, branch protection rules, and recent maintenance activity. It provides a single number for comparing repository maturity across an organisation.
All GitHub metrics
Empower your team to understand and act on GitHub data
Map what drives your metrics, measure progress at any grain, prove what works statistically, and deliver personalised action plans to every team member.