My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Wiki pages
Links

Generate unit tests coverage report in emma xml format for symfony

Prerequis :

  • xdebug installed (doesn't need to be enabled in the ini file).

How to use it :

 ./symfony acr:report --xml=pathToSaveXml

When you launch your tests in the continuous integration server, the environnement must be the same than in production, so you don't need to have xdebug (and its slows them). But symfony code coverage task needs it to work, so you can install it but disable it in the ini file. And indicates to the task to path to xdebug extension.

./symfony ecr:report --xml=log/coverage.xml --xdebug-extension-path="/usr/lib/php/extensions/xdebug.so"
Powered by Google Project Hosting