PHPunit 3.7.1 PHP 5.3.14 Windows 7
Using cmd i "cd" in the directory where phpunit.xml lives and runs
phpunit -c phpunit.xml
but does not generate any code coverage.
phpunit.xml:
<phpunit bootstrap="./bootstrap.php" verbose="true" > <testsuites> <testsuite name="Test Suite"> <directory suffix=".php">./Base/src/</directory> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory suffix=".php">../src</directory> <exclude> <directory suffix=".php">../../vendor</directory> </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="./CodeCoverage/"/> </logging> </testsuite> </testsuites> </phpunit>
when i run
phpunit -c phpunit.xml --coverage-html CodeCoverage
which works fine but nothing works in the filter.
What am I doing wrong here?
Penetal
source share