# Test Pass Rate

Test pass rate is the percentage of counted test results that passed within a defined scope.

Cloud concept. Updated 2026-11-26. Page: https://blowstack.com/tools/cloud-concepts-hub/test-pass-rate

> Test pass rate summarizes the outcomes of a test run, a set of runs, or a reporting period. It helps teams spot regressions and make release decisions, but comparisons are meaningful only when the tests counted and the treatment of retries, skips, and errors are consistent.

Practice exams covering Test Pass Rate: [DVA-C03 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate).

## 5 key aspects of Test Pass Rate

A useful test pass rate depends on clear counting rules, complete results, consistent aggregation, and thresholds that reflect release risk.

1. **Explicit denominator**: Define which outcomes are eligible and whether the unit is a test attempt, a final test result, or a unique test case. Return an unavailable value when the eligible count is zero.
2. **Consistent retry handling**: Retain attempt-level results even if the headline rate uses the final outcome. Compare first-attempt and final-outcome rates to detect instability that retries would otherwise hide.
3. **Count-based aggregation**: Sum passed and eligible counts before dividing to calculate an overall result-level rate. Keep suite, branch, and environment breakdowns available so teams can locate regressions.
4. **Result completeness**: Compare received reports with the expected suites and shards. Track skips, cancellations, runner errors, and missing reports separately so a partial run cannot look like a clean one.
5. **Release and trend interpretation**: Use pass-rate trends to investigate changes in outcomes, and require critical tests to pass independently of any overall threshold. Show test counts and compare like-for-like scopes before treating a percentage change as meaningful.

## Cloud services for Test Pass Rate

Azure Pipelines and AWS CodeBuild are alternative places to run automated tests and publish their results alongside a build. Azure Test Plans adds planned test execution, including manual cases, whose results can be reviewed separately from CI runs. When native reports do not cover a cross-pipeline question, export structured outcomes to an analytics service such as BigQuery. Normalize outcome labels, test identifiers, and retry handling before calculating shared trends. Keep build-level reports for troubleshooting individual failures, and use the aggregated data to compare equivalent suites or environments over time.

- **[AWS CodeBuild](https://blowstack.com/tools/cloud-services-hub/aws-codebuild)**: CodeBuild test reports ingest structured results generated by a build and display pass rates and individual test outcomes. Report groups organize reports from repeated builds for review.

## What is Test Pass Rate

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.

## Test Pass Rate exam questions

Real practice exam questions on Test Pass Rate, with the correct answer and its explanation.

### Question 1 (DVA-C03)

**Question:**

A developer uses Kiro to draft a script that summarizes nightly AWS CodeBuild test results for a payment-processing application. CodeBuild runs the tests in two parallel shards and retries failed tests once. The team wants the summary to show one percentage across both shards that reveals failures even if the tests pass on retry. Tests that are skipped must not affect the percentage.

On the initial run, the first shard records 180 passes and 20 failures. The second shard records 20 passes and 10 skips. On retry, 18 of the 20 failed tests pass. What result should the developer expect when validating the script against this run?

**Correct answer:** 90.9%, calculated from 200 passes out of 220 tests with a pass or fail on the initial run.

**Explanation:** Sum the initial passes and failures across both shards, then divide the 200 passes by the 220 eligible results. The skipped tests are excluded, and the retries do not replace the initial failures.

## Practice Test Pass Rate in a full exam

Questions on Test Pass Rate in each practice exam, with every answer option and an explanation for each:

- [DVA-C03](https://blowstack.com/practice-exams/aws-certified-developer-associate): 1 question

## Learn Test Pass Rate in lessons

2 short lessons on Test Pass Rate in 1 certification course.

- DVA-C03: Code Coverage vs. Test Pass Rate (Premium), https://app.blowstack.com/lessons/code-coverage-vs-test-pass-rate-dva-c03
- DVA-C03: Test Pass Rate: AI-assisted analysis of CI results (Premium), https://app.blowstack.com/lessons/test-pass-rate-ai-assisted-analysis-of-ci-results-dva-c03
