How to look at the test coverage for an extension - eg /ext/dom

Checkout the PHP53 code and build it

Check the coverage of a single extension

export TEST_PHP_EXECUTABLE=/home/zoe/BUILDS/php53_dev/sapi/cli/php
$TEST_PHP_EXECUTABLE /home/zoe/BUILDS/php53_dev/run-tests.php /home/zoe/BUILDS/php53_dev/ext/dom

How would I look at the coverage of a subset of the tests?

For example - suppose I wanted to take all the tests which are there because of bug reports and just look at what the base test cases cover.

Just for interest, the code coverage of the dom extension without the bug tests is 2101 of 4708 lines (44.6%).

Don't forget to copy the bug tests back afterwards: