Problem/Motivation
Working on
β¨
Add performance test support
Active
it looks like there is an issue with gitlab pipelines, possible an old version of chromedriver?
I then tried to run tests locally.
composer install fails with this:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/mailsystem, it could not be found in any version, there may be a typo in the package name.
I then added this to composer.json to fix that:
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
After running composer install, I get this:
ddev composer unit
PHP Warning: Class "Drupal\TestTools\PhpUnitCompatibility\PhpUnit12\TestCompatibilityTrait" not found in /var/www/html/vendor/drupal/core/tests/Drupal/Tests/PhpUnitCompatibilityTrait.php on line 12
Warning: Class "Drupal\TestTools\PhpUnitCompatibility\PhpUnit12\TestCompatibilityTrait" not found in /var/www/html/vendor/drupal/core/tests/Drupal/Tests/PhpUnitCompatibilityTrait.php on line 12
PHP Fatal error: Trait "Drupal\Tests\PhpUnitCompatibilityTrait" not found in /var/www/html/vendor/drupal/core/tests/Drupal/Tests/UnitTestCase.php on line 36
Fatal error: Trait "Drupal\Tests\PhpUnitCompatibilityTrait" not found in /var/www/html/vendor/drupal/core/tests/Drupal/Tests/UnitTestCase.php on line 36
Script phpunit --colors --bootstrap=src/bootstrap-fast.php tests handling the unit event returned with error code 255
Composer [unit] failed, composer command failed: exit status 255. stderr=
This is because composer install happily installed phpunit 12, but Drupal core isn't compatible with that yet.
I downgraded to phpunit 10:
composer require phpunit/phpunit:^10 --dev -W
But then I got this:
ddev composer test
sh: 1: parallel-lint: not found
Script parallel-lint src tests handling the lint event returned with error code 127
Script @lint was called via test
No idea what that is, so that's as far as I got.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes