| Question | Answer
| ------------| ---------------
| Infection version | 0.11.5
| PHP version | 7.2.14
| Platform | Ubuntu/Windows/MacOS
The issue initially reported by dkarlovi in Slack:
Infection throws an exception for case when user adds more then one test framework option in the ---test-framework-options. The issue is caused by not enough extra options escaping.
_command:_
phpdbg -qrr /tools/infection --test-framework=phpunit --test-framework-options="--verbose --group unit"
_throws:_
[ERROR] Project tests must be in a passing state before running Infection.
Check the executed command to identify the problem: '/usr/local/bin/phpdbg' '-qrr'
'/project/vendor/phpunit/phpunit/phpunit' '--configuration'
'/tmp/infection/phpunitConfiguration.initial.infection.xml' '--verbose --group unit'
PHPUnit reported an exit code of 1.
Refer to the PHPUnit's output below:
STDOUT:
PHPUnit 7.0.0 by Sebastian Bergmann and contributors.
unrecognized option --verbose --group unit
@sidz did you have an idea how to fix it? I remember we discussed something related to all this stuff, but not exaclty
@maks-rafalko yup. Just need to explode --verbose --group unit with an empty space delimiter at the top layer of Infection. Then pass this array to the instead of string:
That's it. Symfony Process will do all the things inside it.
p.s. Hope I will find some time on this week.
Isn't it time for 0.14? I recall there were some significant advancements, memory consumption wise.
Yes, was planning to do it next week or two