60 / 62 · 22 Test Strategy & Quality Metrics · Quality Trends and Forecasting← prev⊞ allnext →☰ Read as one page
7.8Continuous Improvement: Using Metrics to Drive Process Changes
The Metrics-Driven Improvement Cycle
1. MEASURE → Collect baseline metrics for 3 months
↓
2. ANALYZE → Identify the worst metric (biggest gap to target)
↓
3. HYPOTHESIZE → "If we do X, metric Y will improve because Z"
↓
4. EXPERIMENT → Implement the change for 2-4 sprints
↓
5. EVALUATE → Did the metric improve? By how much?
↓
6. DECIDE → Keep the change, modify it, or revert it
↓
Back to 1 (with updated baseline)
Real-World Improvement Examples
| Metric Problem | Hypothesis | Experiment | Result |
|---|---|---|---|
| Escaped defect rate: 12% | "Three amigos sessions will catch requirements bugs earlier" | Started three amigos for all high-risk stories | Escaped rate dropped to 6% in 3 sprints |
| Bug fix cycle time: 5 days | "Bugs are waiting in triage too long" | Implemented daily bug triage (15 min) | Cycle time dropped to 2.5 days |
| Flaky test rate: 8% | "Most flakiness is from test data dependencies" | Switched to test data factories from static fixtures | Flaky rate dropped to 3% |
| Automation ratio: 40% | "Developers will write more tests if we provide patterns" | Created test template library and pairing sessions | Ratio increased to 58% in 2 quarters |
When Metrics Do Not Improve
If a process change does not improve the target metric after 3-4 sprints:
- Verify the data. Is the metric being collected correctly?
- Check the hypothesis. Was the root cause analysis correct?
- Check the execution. Was the change actually implemented consistently?
- Consider confounding factors. Did something else change that offset the improvement?
- Revert and try something different. Sunk cost should not keep you on a failing experiment.