Been banging my head against this one for a while and could use some help. I’m working to get xdebug
enabled in our codebase at work to facilitate code coverage. I was able to get it installed and you can see that here:
I’ll also add the xdebug.ini
so that you can see configuration:
phpunit.xml
configuration file:
If I scope the tests that run to the unit folder by running ./vendor/bin/pest --suite unit
the tests run without a problem and a report is generated:
However, when I try to run the entire test suite in parallel I get the following output and i am just not sure what to do with it:
Some other notes:
- When xdebug is disabled I can run parallel without a problem.
- When I run the entire test suite in non parallel mode it does run a lot of tests but it doesn’t give me the summary/breakdown at the end. Which makes me believe it might be failing silently. Could it be xdebug compatibility issue (something I was wondering)?
- I also noticed that when I run the test suite not in parallel mode the phpunit report does not update. More evidence that something is wrong with our test suite when xdebug is enabled.
- I tried adding a tearDown with the following code based on an article I found to hopefully catch any memory leak issues, but no change.
- I can run a specific test not in parallel and the test run does complete.
- The failures in parallel are caused by the worker crashing.
- I do have some tests failing since I enabled xdebug but I don’t think that would cause the worker to crash (not sure).
- We do have tests that are in the old phpunit format. I went through and commented all of those out, but no change.