Instructions to run reporter:

  1. change index.php:
    • add <?php require_once "phpcoverage.remote.top.inc.php"; to top
    • require_once "phpcoverage.remote.bottom.inc.php"; to bottom
  2. change .htaccess file add to bottom:
    • SetEnv PHPCOVERAGE_HOME /path/to/www/sites/all/modules/php_coverage/spikephpcoverage/src
  3. copy phpcoverage.remote.bottom.inc.php and phpcoverage.remote.top.inc.php from spikephpcoverage/src to web site root dir
  4. create reports dir in web site root writable by apache
  5. apply stcoverage.patch
  6. install and enable php_coverage module

This only works for functional web tests as it only records when index.php is hit. Unit tests can also be covered but I haven't found a way to use both at once.
This should be it.

CommentFileSizeAuthor
php_coverage.zip548.89 KBRok Žlender
stcoverage.patch1.32 KBRok Žlender

Comments

dlhubler’s picture

Title: Coverage reporter » Worth noting

that if you try to run coverage on all tests at once, phpcoverage chokes on the +500MB xml file. otherwise a single group of tests is fine.

catch’s picture

Title: Worth noting » Coverage reporter

fixing title.

cwgordon7’s picture

Status: Needs review » Closed (won't fix)

I'm moving this to a contributed module... stay tuned. :)