dde icon indicating copy to clipboard operation
dde copied to clipboard

Support custom docroot and behat test settings.

Open frankcarey opened this issue 9 years ago • 2 comments

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.

frankcarey avatar Jul 21 '15 23:07 frankcarey

++ Custom docroot, our standard docroot is htdocs.

timodwhit avatar Jul 29 '15 14:07 timodwhit

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)

lmakarov avatar Oct 29 '15 14:10 lmakarov