@runTestsInSeparateProcesses results in infinite loop when installed with Composer ^2.2 #4847
Labels
feature/process-isolation
Issues related to running tests in separate PHP processes
installation/composer
type/bug
Something is broken
Summary
After composer install with composer 2.2.0 or 2.2.1, running a PHPUnit test with separate process flag results in an infinite loop. Possibly related to #4835?
Apologies if this is an issue with Composer rather than PHPUnit. I know there were a few reported issues with the Composer 2.2.0 release, but I think they've been marked resolved with the 2.2.1 patch? E.g. composer/composer#10387
Current behavior
PHPUnit appears to keep spawning new child processes. Keeps looping and consuming memory until terminated.
How to reproduce
Ensure no vendor directory exists.
Install composer 2.2.0 or 2.2.1 and composer install:
composer.json:
MyTest.php
phpunit.xml (created using
--generate-configuration
)Run tests:
Expected behavior
Tests should run to completion (as is the case with composer 2.1.14).
The text was updated successfully, but these errors were encountered: