Intermediate #code-coverage #mutation-testing #quality-gates #branch-coverage

Code Coverage & Quality Gates Language

5 exercises — master the vocabulary of code coverage types, mutation testing, quality gates, and test flakiness in professional engineering discussions.

0 / 5 completed
Code coverage vocabulary quick reference
  • Line (statement) coverage — every executable line executed at least once
  • Branch coverage — both true/false outcomes of every conditional executed
  • Path coverage — every possible execution sequence covered; exponentially complex
  • Mutation testing — injects deliberate faults to measure test effectiveness; kill rate = % of mutants detected
  • Quality gate — automated pass/fail conditions required before merge or deployment
  • Flaky test — passes and fails non-deterministically without code changes
  • Flakiness rate — % of CI builds containing at least one non-deterministic failure
1 / 5

A QA engineer explains the testing strategy to the team: "We measure line coverage, branch coverage, and path coverage." What is the correct definition of each and how do they differ in thoroughness?