PHPUnit Code Coverage
Estoy aprendiendo las cuerdas con la unidad de pruebas.Zend Framework
aplicaciones Hasta ahora he establecidoPHPUnit
trabajar conZend Framework
y han comenzado a escribir algunos casos de prueba simples.
Mi problema es que me pregunto por quéCode Coverage
no funciona a pesar de estar configurado en la etiqueta de registro en miphpunit.xml
.
No recibo ningún error pero no se genera ningún informe de cobertura.
Sin embargo funciona cuando corrophpunit --coverage <dir>
La sección de registro de mi phpunit es la siguiente:
<code><phpunit bootstrap="./application/bootstrap.php" colors="true"> <testsuite name="CI Test Suite"> <directory>./</directory> </testsuite> <testsuite name="Library Test Suite"> <directory>./library</directory> </testsuite> <filter> <whitelist> <directory suffix=".php">../application/</directory> <exclude> <directory suffix=".phtml">../application</directory> <file>../application/Bootstrap.php</file> <file>../application/controllers/ErrorController.php</file> </exclude> </whitelist> <logging> <log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80" /> <log type="testdox" target="./log/testdox.html" /> </logging> </filter> </phpunit> </code>
¿Alguien ha encontrado esto antes? ¿Cuál es entonces el problema probable?