Edit page

Code Coverage

Em white-box testing, podemos definir uma métrica que nos indica a percentagem do nosso código que é testado, chamada de code coverage.

No entanto, existem diversos critérios que podemos aplicar, cada um com as suas vantagens e desvantagens:

  • Statement Coverage
  • Branch Coverage
  • Condition Coverage
  • Path Coverage

Statement Coverage

Branch Coverage

Condition Coverage

Path Coverage

https://sqa.stackexchange.com/questions/20226/how-do-we-calculate-statement-coverage-branch-coverage-path-coverage-and-cond