-
Notifications
You must be signed in to change notification settings - Fork 72
Add support for pcov #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for pcov #137
Conversation
c20c46f
to
a372bff
Compare
Hi, as agreed @ chat... I'm going to pull the initial iteration of this into master, do some tests and spread it over >= 7.3 images. So, for now we can enable pcov by doing simply:
Pending is the idea about how we could pass any arbitrary number of INI settings to the images, surely using some env variable containing all them and then an entry point adding them to ini file. Something like that would also help to issues/prs like #107. Ok, going to try... |
Perfect, have run:
And have got coverage for lib/dml pretty nice generated: |
So I'm going to spread the commit over the 7.3, 7.4 and 8.0 branches to get all them able to run pcov coverage with phpunit. |
Hello Everyone,
I still like the approach of a372bff#diff-d0f2543d6dfb906e651ff5d4cc4cb666134f65b3ddd1400ca430452e0ef7466a which could be evolved into using ENV VARs with the prefix ; PHP_INI_MEMORY_LIMIT is taken from environment
memory_limit = ${PHP_INI_MEMORY_LIMIT} On the other side, @stronk7's proposal recalls me something like Probably, a combination of the approaches above could be the long-term solution. Thought? HTH, |
Hi, IMO, problem with supporting "custom" env variables is that there are endless combinations. The proposal here was about php-pcov ones, there are other issues about php-xdebug ones (#31, #102). Or there are ideas about how to edit php.ini settings (#107). Tomorrow it can be something related to the php-xxxx extension, or maybe So I was thinking that creating "custom" env variables could become a nightmare and won't solve all potential cases. So (super draft explanations come), yes, I'was thinking about only ONE way to pass ANY php.ini setting and make the container to apply for them before starting. Say:
Or, all-together:
That could be used for the php-pcov ones, for the php-xdebug ones, and for any other extension or setting in general. All them added to a final "zzzz" ini file, agree. And done. (as commented above, yes, this is a very simple draft, all those settings can be passed in a number of ways (format-wise), but the idea remains). Maybe we can create an issue with a proposal and continue advancing there. Once having it... I think it can also help to #140 (apart from the issues linked above) by having a clear and simple way to add any configuration to the image before it runs. Ciao :-) |
Add support for pcov such that we may generate code coverage with relative ease.