Last active
August 29, 2015 14:21
-
-
Save samsonasik/299defe1e70c39e300f3 to your computer and use it in GitHub Desktop.
phpunit issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phpunit bootstrap="Bootstrap.php" colors="true"> | |
<testsuite name="MyTest" > | |
<directory>./MyModuleTest</directory> | |
</testsuite> | |
<filter> | |
<whitelist> | |
<directory>./../../../../module/MyModule/src</directory> | |
<file>./../../../../module/MyModule/Module.php</file> | |
</whitelist> | |
<blacklist> | |
<directory>./../../../../vendor</directory> | |
<directory>./../../../../module/OtherModuleDependency</directory> | |
<directory>./../../../../module/OtherModuleDependency1</directory> | |
<directory>./../../../../module/OtherModuleDependency2</directory> | |
</blacklist> | |
</filter> | |
<logging> | |
<log type="coverage-html" target="./../../../../data/test-html-report/mymodule/" charset="UTF-8" yui="true" /> | |
</logging> | |
</phpunit> |
I use only whitelist and never had coverage issue... It shows files in that directory only
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
@Xerkus I did it, but still same, I've fixed it by use only blacklist, but add "test" folder and files to blacklist too.
btw, thank you ;)
hm.., just realized, it actually not fix at all, "some" untested files still not shown in coverage...
it fixed in phpunit 4.7.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the vendor and other module still shown in coverage even i blacklisted them. if i only use blacklist, it works but it only show tested file, untested files didn't shown in the coverage. I tried to use :
in whitelist too but not works.