Cobertura de Ramos - Definição do Glossário CI/CD
A cobertura de ramos é a porcentagem de resultados de decisão (cada aresta verdadeira e falsa de cada if, loop e switch) que os testes exercitaram.
Por que é mais rigorosa
Uma linha com um if pode ter cobertura de linha completa enquanto apenas um ramo foi executado; a cobertura de ramos força os testes a atingir ambos os resultados.
Guias relacionados
Line Coverage - CI/CD Glossary DefinitionLine Coverage: Line coverage is the percentage of executable source lines that were run at least once by the…
Path Coverage - CI/CD Glossary DefinitionPath Coverage: Path coverage measures the percentage of distinct execution paths through a function that were…
Test Coverage - CI/CD Glossary DefinitionTest Coverage: Test coverage measures how much of the codebase is exercised by the test suite, expressed as a…