Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Test was run in child process and ended unexpectedly" on all functional tests. #23

Open
guiu-rocafort opened this issue Dec 20, 2023 · 0 comments

Comments

@guiu-rocafort
Copy link

I set a basic environment with the recommended commands in the readme

ddev start
ddev composer install
ddev auth ssh
ddev install

I run the tests using the provided command "ddev test ". All the Functional tests fail with the error "Test was run in child process and ended unexpectedly", this is consistent between different modules, i tried "examples", and "domain" for example. The Kernel tests work fine.

This is an sample output from "ddev test examples":


 ✘ Add fields
   ┐
   ├ Test was run in child process and ended unexpectedly
   │
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97
   ┴

 ✘ Create admin permission
   ┐
   ├ Test was run in child process and ended unexpectedly
   │
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97
   ┴

Contact (Drupal\Tests\content_entity_example\Kernel\Contact)
 ✔ Entity

Cron Example (Drupal\Tests\cron_example\Functional\CronExample)
 ✘ Cron example basic
   ┐
   ├ Test was run in child process and ended unexpectedly
   │
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97
   ╵ /var/www/html/vendor/bin/phpunit:122
   ┴

Dbtng Example (Drupal\Tests\dbtng_example\Functional\DbtngExample)
 ✘ Dbtng example
   ┐
   ├ Test was run in child process and ended unexpectedly
   │
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97
   ╵ /var/www/html/vendor/bin/phpunit:122
   ┴

 ✘ Ui
   ┐
   ├ Test was run in child process and ended unexpectedly
   │
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
   ╵ /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97
   ╵ /var/www/html/vendor/bin/phpunit:122
   ┴

Dbtng Example Repository (Drupal\Tests\dbtng_example\Kernel\DbtngExampleRepository)
 ✔ Dbtng example storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant