An automated build tool to allow projects to have a set standardized operations scripts.
See https://github.com/lullabot/drainpipe first.
This is a composer package containing the testing helpers for Drainpipe i.e.
should be included in
require-dev and not installed in production
Runs all static tests i.e. those which don't require a running Drupal environment.
The static tests consist of:
- YAML lint on
.ymlfiles in the
- Twig lint on files in
These cannot currently be customised. See #9.
Runs PHPUnit tests in
Runs PHPCS with Drupal coding standards provided by Coder module.
Runs all functional tests i.e. those which require a running Drupal environment.
Verifies that exported configuration matches the current configuration in Drupal's database.
Runs functional browser tests with Nightwatch.
If you are using DDEV, Drainpipe will have created a
.ddev/docker-compose.selenium.yaml file that provides Firefox and Chrome as
containers, as well as an example test in
Nightwatch tests must have the suffix
.nightwatch.js to be recognised by
the test runner.
Whilst tests are running, you can view them in realtime through your browser.
The password for all environments is
Attempts to autofix any issues discovered by tests. Currently, this is just fixing PHPCS errors with PHPCBF.