Git Product home page Git Product logo

Comments (3)

serundeputy avatar serundeputy commented on August 15, 2024

I started on this today. Here is what I've got:

  • started with Pantheon example-drops-8-composer as it has a composer with Behat and friends in it.
composer create-project pantheon-systems/example-drops-8-composer behat-d8
lando init behat-d8
lando drush si --db-url=mysql://drupal8:drupal8@database/drupal8

In tests/behat-pantheon.yml I had to add to the drush section beneath the api_driver section like so:

#
# behat.yml file for testing on Pantheon.
#
default:
  suites:
    default:
      paths:
        - %paths.base%/features
        - %paths.base%/site-features
      contexts:
        - FeatureContext
        - Drupal\DrupalExtension\Context\DrupalContext
        - Drupal\DrupalExtension\Context\MinkContext
  extensions:
    Behat\MinkExtension:
      goutte: ~
      selenium2: ~
      files_path: './data-files'
    Drupal\DrupalExtension:
      blackbox: ~
      api_driver: 'drush'
      drush:
        alias: 'local'

Behat tries to write to /tmp files, but in the container they are owned by root so I changed the ownership there to www-data:

lando ssh
chmod -R www-data:www-data /tmp

We'll want a way to have that set up already for the user extras key in .lando.yml?

from docs.

serundeputy avatar serundeputy commented on August 15, 2024

The pantheon-systems/example-drops-8-composer repo does not include a .htaccess file so I had to copy one in to make clean URLs work and the site be useable.

from docs.

serundeputy avatar serundeputy commented on August 15, 2024

PR: lando/lando#253

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.