Test coverage tkejjel kemm mill-kodiċi eżekwit mit-tests — tipikament bħala perċentwali (eż. 80% coverage). Hija metrika utli għall-irkuperta tal-kodiċi mhux ittestjat, imma huwa importanti nifhmu l-limitazzjonijiet tagħha: coverage għoli ma jiggarantixxix tests tajbin.
Dak li l-coverage tkejjel
TEST COVERAGE = the % of code exercised by the test suite:
LINE coverage → % of code lines executed by tests
BRANCH coverage → % of branches (if/else paths) taken
FUNCTION coverage → % of functions called
STATEMENT coverage → % of statements executed
→ Coverage tools instrument the code and report what tests do/don't exercise.
