To run the tests for next-drupal
, run:
yarn test
Tests for the next
module use PHPUnit. To run the tests:
- Run
composer install
inside the/drupal
directory. - Then run
yarn test:next
from the root of the repo to run the PHPUnit tests.
Note: We have a CI for running these tests on GitHub Actions.
We use Cypress to run end-to-end tests for the examples.
You will need a copy of the database and files on your local machine to run the tests. These are not tracked in this repo. You can reach out to Chapter Three to get a copy.
TODO: Add a test profile that builds the Drupal site from config with demo content.
To run the tests:
- Setup the Drupal site with the database and files.
- Run
yarn
from the root of the monorepo to install dependencies. - Then run
yarn test:e2e:ci
to run the tests.