dde
dde copied to clipboard
Support custom docroot and behat test settings.
The site I'm testing this with is a pantheon site. They annoyingly don't allow for docroots other than the repo root. I've fixed this by adding a symlink for docroot that points to the repo root, but this isn't optimal.
$ ln -s ./ docroot
Similarly, my tests are not in /tests/behat like the current setup assumes. It would be nice to just set these settings in the docker-compose.yml
I think these could both be environment
settings.
++ Custom docroot, our standard docroot is htdocs
.
A custom docroot path can be set via the DOCROOT env variable on the web container, e.g.
environment:
- DOCROOT=/var/www/htdocs
This was around for a while, but is not yet fully supported and tested with some dsh commands ( dsh has docroot
hardcoded in a few places)
As for behat - it is now possible to pass the path to behat tests via --path
option, e.g.
dsh behat --path=path-to-tests
path-to-tests
is relative to the docker-compose.yml file (project root)