The goal for this project is to be a "starter" project for Promet Projects.
This project emphasizes:
- Easy project setup
- Easy test setup
- Commands for asset creation and deployment
This is a work in progress.
- Install docksal
fin init
OR
- Install ddev
ddev start
ddev init
Tests are in /tests
folder.
Run fin/ddev behat
Run fin/ddev pa11y
Currently there is not a container for cypress. This will make it easier to use locally. To install cypress: cd tests/cypress; npm i
.
To run cypress tests: cd tests/cypress; node_modules/.bin/cypress open
to open the interactive test runner or cd tests/cypress; node_modules/.bin/cypress run
to run all tests.
Coming soon.
There is a starter theme for setup and testing. It is recommended to install a new theme.
To build the theme assets:
ddev/fin build-theme
To run storybook:
ddev/fin storybook
This project uses Entity staging for fixtures. The fixtures are used for tests as well as test content. To install the fixtures run:
fin/ddev test-content
Item | Description |
---|---|
Local development | ddev or docksal |
single init command | |
artifact building: | |
single command to get database from hosting provider | |
Testing | travis setup |
behat tests | |
cypress tests | |
pa11y tests | |
Deployment | artifact creation fin build-artifacts |
single deployment command for pantheon and acquia fin deploy |
|
terminus integration | |
Drupal Tools | |
memcache | |
drush | |
drupal console (included with docksal) | |
environment switching fin site-mode dev |
|
entity staging (for test content) |
Item | Description |
---|---|
Testing | visual regression |
phpunit tests | |
Drupal Tools | |
redis for pantheon |