A test suite says what it checks; coverage says what it reaches. With coverage on, every local request notes which templates it read, which of their tags ran, and which branch each {if} and {case} took. The report then shows each template with the parts that never ran marked.
|
PHP fragments/coverage_1.php |
HTML fragments/coverage_1.pad |
Result |
|---|---|---|
|
|
{if $stock gt 0}In stock{else}Sold out{/if}
|
$padCoverage = TRUE in _config/config.php records into the run
default; a name instead of TRUE records into a run of that name, and
?page&padCoverage=name records one request.develop/?coverage&start=suites records every local request of every
application until develop/?coverage&stop - start it, run the suites,
stop it, and develop/?coverage&run=suites lists every template with the
share of its tags and branches that ran, and the files no request read at all.DATA/coverage/<run>.jsonl, one line per
request. Only local requests are recorded.