You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can it be related to pcov.directory? But the 2nd rename shows that it is not directory, but directory prefix (as both src and src-code are considered).
The text was updated successfully, but these errors were encountered:
I've had this same issue and it is indeed related to pcov.directory.
The problem is described in the README under the NOTES section:
When pcov.directory is left unset, PCOV will attempt to find src, lib or, app in the current working directory, in that order; If none are found the current directory will be used, which may waste resources storing coverage information for the test suite.
So if you do not set pcov.directory and one of src, lib or app is found, no other directory is considered.
I've created this repo (2 dummy classes, 100% code coverage expected).
Simple structure:
Whitelist:
On
master
branch this build reports for xdebug and phpdbg 100% coverage (which is correct) and for pcov 50% (one class instead of two).When I rename
src
tonot-src
then suddenly all is good - all 3 jobs reports 100% coverage.When I rename
dev-code
tosrc-code
then again, all is [good]https://travis-ci.com/kubawerlos/pcov-bug/builds/129603756) - all 3 jobs reports 100% coverage.Can it be related to
pcov.directory
? But the 2nd rename shows that it is not directory, but directory prefix (as bothsrc
andsrc-code
are considered).The text was updated successfully, but these errors were encountered: