Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This is an experiment for exploring possibilities to integrate the third party PHP Code Coverage library into Drupal Simpletest. The goal is to provide a module capable of generating test coverage reports without having to patch core.


Install PHP Code Coverage using PEAR:

pear config-set auto_discover 1
pear install pear.phpunit.de/PHP_CodeCoverage

Enable simpletest and cover_simpletest modules.

Generating code coverage reports

Navigate to admin/config/development/testing and run some tests. On the test results page use the Generate code coverage report local action to generate HTML reports.


Please comment on #2004500: Code coverage analysis without core patch and help me to decide whether this sandbox should become a full project or the approach should be integrated into the existing Code Coverage module.

Project information