Test pass rate answers a specific question: of the test results counted for a run, release candidate, or reporting period, what percentage passed? A common definition is 100 × passed ÷ (passed + failed), which excludes skipped and not-run tests. Document how the metric treats timeouts, aborted runs, and infrastructure errors. For example, a timeout in the application under test might count as a failure, while a runner that never started the suite should be reported as an incomplete run. If there are no eligible results, report the rate as unavailable rather than 0% or 100%.
Cloud CI/CD pipelines often run tests across parallel workers, operating systems, and deployment environments. Publish structured results from each worker and retain the test identifier, run identifier, commit, suite, environment, outcome, and attempt number. When querying the data, filter to the runs or time window of interest, group by dimensions such as suite or environment, count passed and eligible results under the same rules, and divide the counts. Deduplicate repeated uploads without collapsing legitimate executions of the same test in different environments.
Aggregate raw counts when the goal is to measure the share of all counted results that passed. If one shard passes 90 of 100 tests and another passes 9 of 10, the combined rate is 99 of 110, or 90%. If the second shard instead passes all 10, the combined rate becomes 100 of 110, or about 90.9%, not the 95% obtained by averaging the two shard percentages. Show the denominator on dashboards, and break out results by suite or environment so a large unit-test suite does not hide a failing integration suite. Check for changes in test selection before interpreting a trend as an improvement or regression.
Decide whether a retry replaces the initial result. If a test fails and then passes, a final-outcome rate counts it as a pass, while a first-attempt rate counts it as a failure. Tracking both shows whether retries are masking instability. Pair the rate with failed, skipped, and missing-result counts: a reported 100% is not evidence of readiness if a required suite never uploaded results. For release gates, require the expected suites to complete and apply explicit rules for critical tests. A broad percentage threshold can tolerate some noncritical failures, but it should not let a failed checkout test pass unnoticed. Test pass rate measures observed outcomes; it does not measure code coverage or prove that the software is defect-free.