Clúdach tástála tomhaisíonn cé mhéad den chód a fheidhmítear le tástálacha — de gnáth mar chéatadán (m.sh. 80% clúdach). Is méadchainéal úsáideach é chun cód nach dtástailtear a aimsiú, ach tá sé tábhachtach a thuiscint go bhfuil teorainneacha ann: ní dhéanann clúdach ard a ráthú go bhfuil tástálacha maithe ann.
Cad a thomhaisíonn clúdach
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.
