This add-on seamlessly integrates various quality assurance tools from Drupal QA into DDEV, providing convenient ddev commands for various QA tools.
ddev add-on get Pronovix/ddev-drupal-qa
ddev restartAfter installation, make sure to commit the .ddev directory to version control.
Prerequisites:
Before using the commands, ensure you have the pronovix/drupal-qa package installed in your project:
composer require --dev pronovix/drupal-qaThis add-on also automatically installs ddev/ddev-selenium-standalone-chrome as a dependency of running tests with PHPUnit and other frameworks.
Once installed and configured, you can use the following ddev commands:
Description: Run phpcbf inside the web container
Usage: ddev phpcbf [flags] [args]
Example: "ddev phpcbf" or "ddev phpcbf -n"
Description: Run phpcs inside the web container
Usage: ddev phpcs [flags] [args]
Example: "ddev phpcs" or "ddev phpcs -n"
Description: Run phpstan inside the web container
Usage: ddev phpstan [flags] [args]
Example: "ddev phpstan" or "ddev phpstan -n"
Description: Run phpunit inside the web container
Usage: ddev phpunit [flags] [args]
Example: "ddev phpunit" or "ddev phpunit --stop-on-failure"
Description: Run behat inside the web container
Usage: ddev behat [flags] [args]
Example: "ddev behat" or "ddev behat --tags=@my_tag"
Contributed and maintained by @Pronovix