Infection gets stuck in the first execution after configuration file is created #576
At the first execution of Infection, it creates infection.json.dist and then it runs testcases. In this time, the configuration is not loaded properly and the execution goes wrong.
Output with issue
In the following output, Infection is executed with phpdbg and breakpoint is set on
At the first execution (I don't have infection.json.dist)
You can see InfectionConfig is empty here, and after this the execution gets stuck.
Second run (infection.json.dist is already created)
In this time, configuration is loaded properly and the execution is successfully finished.
The text was updated successfully, but these errors were encountered:
I can reproduce it for infection itself. When I remove
PHP Fatal error: Uncaught Error: Call to a member function getMethod() on null in src/Visitor/CodeCoverageMethodIgnoreVisitor.php:58
Seems like it tries to travers files from the
@borNfreee looks like you found a different issue :) but I can't confirm it.
As you can see I selected fifth option in the first question and changed the default timeout to 25
But the $config object will have default values:
it happens due to this line
as it will initialize the config class with default values