Quality is measurable. Right metrics drive the right behaviors.
Test metrics:
- Test coverage (Apex 75%+; LWC; UI).
- Test pass rate in CI.
- Test execution time — how long to run full suite.
- Test maintenance cost — time fixing broken tests.
Defect metrics:
- Defect density — defects per feature / KLOC.
- Defect leakage — defects found in production vs caught in QA.
- Time to fix — by severity.
- Reopen rate — fixes that didn't work.
Velocity metrics:
- Time to market — feature idea to production.
- Release frequency — how often you ship.
- Cycle time — start of feature to production.
Quality outcomes:
- Production incident rate — quality reaching users.
- Mean time to recovery — when things break.
- Customer satisfaction with quality.
Process metrics:
- Sprint commitment vs delivery.
- Testing automation rate — % automated.
- Code review feedback rate.
Reporting:
- Daily: pass rate, blockers.
- Weekly: trends, defect status.
- Monthly: deeper analysis.
- Quarterly: strategic review.
Anti-patterns:
- Vanity metrics — count of tests without coverage.
- Coverage-only — without quality.
- Defect count as success metric — misleading; depends on testing intensity.
Senior QA insight: measure outcomes, not activity. Production stability is the goal.
The senior framing: DORA-style metrics adapted for Salesforce QA: deploy frequency, lead time, change failure rate, MTTR.
