i invoke phpunit via command line.phpunit running successful code coverage not generated dashboard displayed without code coverage.
my configuration is
php_codecoverage 1.2.18 php 5.5.19 , phpunit 3.7.21
and xampp xdebug setting is
zend_extension = "c:\xampp\php\ext\php_xdebug-2.3.2-5.5-vc11.dll" xdebug.profiler_append = 1 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "c:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "c:\xampp\tmp"
phpunit.xml setting is
<phpunit backupglobals="false" backupstaticattributes="false" colors="true" converterrorstoexceptions="true" convertnoticestoexceptions="true" convertwarningstoexceptions="true" processisolation="false" stoponfailure="false" syntaxcheck="false" bootstrap="./application/bootstrap.php" > <testsuites> <testsuite name="myapp"> <!--<file>./application/models/usertest.php</file>--> <!-- <directory>./</directory> --> <!--<file>./application/modules/user/controllers/usercontrollertest.php</file>--> <directory>./application/modules</directory> </testsuite> </testsuites> <filter> <whitelist adduncoveredfilesfromwhitelist='false'> <directory suffix=".php">../application/</directory> <exclude> <file>../application/bootstrap.php</file> <file>../application/controllers/errorcontroller.php</file> <file>../application/configs/defined.php</file> <directory suffix=".phtml">../application/</directory> <directory>../application/configs/clients/5012/</directory> <directory>../application/configs/clients/your_port/</directory> </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="./log/htmlreport" lowupperbound="35" highlowerbound="70"/> <log type="json" target="./log/jsonreport.json" charset="utf-8"/> </logging> <php> <init name="memory_limit" value="-1"/> </php> </phpunit>
is missing ? wrong here?
Comments
Post a Comment