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
{{ message }}
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
Discussion topic for here or slack. Actually two for now:
Dependency interference
There's a number of issues which are resolved by running humbug in a different manner, to keep dependencies between humbug and the code being mutated from clashing. It will most likely impact the phar build where composer has no scope to resolve requirements. Unfortunately it's hard to spot, so the floor is open to suggestions.
Code coverage errors
A few initial run failures are tied to running phpunit with code coverage. Users may not be doing this at all, not spotting that it fails, and reporting that humbug failed instead. Understandable since we don't do an initial run without code coverage for comparison.
The text was updated successfully, but these errors were encountered:
Is a well know issue to which there is only three solutions AFAIK:
Isolate properly the code used in the PHAR, which can be done by changing the namespaces. It's a whole topic on its own and far from being trivial. I saw it successfully done in some closed projects (success highly correlated to the fact that it was closed, controlled and scoped projects). An open-source generic solution could be done although there will always be edge cases, and it's I believe what https://github.com/webmozart/php-scoper aims at. However webmozart is unlikely to finish this one so this project should be taken over (I can help with that)
Accept the risk. Deal with it.
Require Humbug (and that applies to any tool executing your code) as a dependency via Composer as a regular package
Could be circumvented by providing the code coverage report (it's not rare to run tests with coverage before running Humbug, so that could avoid running the code with coverage twice) or make it more configurable/transparent about how humbug is running them to allow one to reproduce the issue outside of Humbug.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Discussion topic for here or slack. Actually two for now:
There's a number of issues which are resolved by running humbug in a different manner, to keep dependencies between humbug and the code being mutated from clashing. It will most likely impact the phar build where composer has no scope to resolve requirements. Unfortunately it's hard to spot, so the floor is open to suggestions.
A few initial run failures are tied to running phpunit with code coverage. Users may not be doing this at all, not spotting that it fails, and reporting that humbug failed instead. Understandable since we don't do an initial run without code coverage for comparison.
The text was updated successfully, but these errors were encountered: