Skip to content

Instantly share code, notes, and snippets.

@generalredneck
Forked from dustinleblanc/.lando.yml
Last active June 4, 2021 16:10
Show Gist options
  • Save generalredneck/9091aa83f3e4deac97daa6044653e49d to your computer and use it in GitHub Desktop.
Save generalredneck/9091aa83f3e4deac97daa6044653e49d to your computer and use it in GitHub Desktop.
Pantheon Build Tools with Lando Behat Testing
name: some-site
recipe: pantheon
config:
framework: drupal8
env: dev
site: some-site
id: some-uuid-string-here
drush: 8.3
php: '7.3'
webroot: web
xdebug: true
services:
appserver:
overrides:
environment:
BEHAT_PARAMS: >-
{"extensions" : {"Behat\\MinkExtension" : {"base_url" :
"http://appserver_nginx/"}, "Drupal\\DrupalExtension" : {"drush" : {
"root": "/app/web" }}}}
qa:
type: compose
services:
image: quay.io/pantheon-public/build-tools-ci:6.x
user: root
ports:
- '9222'
command: "google-chrome --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --no-sandbox </dev/null &>/dev/null &"
environment:
DEV_SITE_URL: https://dev-site-name.pantheonsite.io
MULTIDEV_SITE_URL: https://appserver_nginx
NODE_EXTRA_CA_CERTS: /user/.lando/certs/lndo.site.pem
tooling:
backstop:
service: qa
cmd:
- "backstop reference --config=.ci/test/visual-regression/backstopConfig.js"
- "backstop test --config=/app/.ci/test/visual-regression/backstopConfig.js"
behat:
service: appserver
cmd: "/app/vendor/bin/behat -c /app/tests/behat/behat.yml -p lando"
#
# behat.yml file for testing locally with lando.
#
default:
suites:
default:
paths:
- %paths.base%/features
- %paths.base%/site-features
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\DrushContext
- FailAid\Context\FailureContext
extensions:
Drupal\DrupalExtension:
blackbox: ~
api_driver: 'drush'
drush:
root: '/app/web'
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
lando:
extensions:
Behat\MinkExtension:
files_path: './data-files'
# base_url set by ENV
browser_name: chrome
sessions:
default:
chrome:
api_url: "http://qa:9222"
validate_certificate: false
pantheon:
extensions:
Behat\MinkExtension:
files_path: './data-files'
# base_url set by ENV
browser_name: chrome
sessions:
default:
chrome:
api_url: "http://localhost:9222"
validate_certificate: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment