Closed jcheron closed 5 years ago
Hello,
I didn't use codeception at all, so maybe my comment is not relevant. Did you configure a whitelist somewhere?
If there is nothing configured as whitelist, everything will be filtered. For example, with phpunit, you have to configure a whitelist this way in phpunit.xml:
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">your_directory/</directory>
</whitelist>
</filter>
https://phpunit.readthedocs.io/en/7.4/code-coverage-analysis.html#whitelisting-files
There is also a whitelist with codeception:
in codeception.yml
file:
coverage:
include:
- directoryToInclude/
but the problem was elsewhere. I found the solution, see https://github.com/Codeception/Codeception/issues/5368#issuecomment-460998252
Thank you for your answer
Problem:
I use codeception for acceptance (with Selenium) and local unit tests. I want to merge remote coverage with local. The 2 generated reports make references to the same files (identical paths and namespaces), however, codeception does not merge them.
So I'm trying to use phpcov...
I use the
--coverage
option to produce serialized format filesThe 2 generated files are:
coverage.serialized
in the_output
local foldercodecoverage.serialized
in the_output/c3tmp
remote folder on the web server I copy the remote file in the same folder (tests/_output
) that the local and execute:Console output:
No error, but the generated file is empty:
phpcov is it compatible with codeception and the
serialized
format as some say? see https://github.com/Codeception/Codeception/issues/3245#issuecomment-228812484configuration