This is a help page to guide you through adding Nightwatch testing capabilities to your quicksprint Drupal core development environment. We do not yet have this included by default in the tools, but you may add Nightwatch testing capabilities by following these instructions.

These are based on Matt Glaman (mglaman)'s instructions for ddev and lando composer-based installs at bluehorndigital/drupal-testing-workshop.

 

  1. Open a terminal program and change directory to ~/sprint/sprint-NAME/drupal
    • cd ~/sprint/sprint-20210413-0827/drupal
  2. Stop your local ddev environment if it is running
    • ddev stop
  3. Save the attached "docker-compose.testing.yaml.txt" file below into the ".ddev" directory as "docker-compose.testing.yaml" without the .txt extension.
  4. Save the attached "nightwatch.txt" file below into the ".ddev/commands/web" directory as "nightwatch" without any file extension.
  5. Save the attached "phpunit.txt" file below into the ".ddev/commands/web" directory as "phpunit" without any file extension.
  6. Start your local ddev environment. It will take a bit of time to download the required image before you can proceed.
    • ddev start
Files