You are here

run-behat.sh in Pantheon Advanced Page Cache 7

Same filename and directory in other branches
  1. 8 tests/behat/run-behat.sh
#!/bin/bash

# Create a drush alias file so that Behat tests can be executed against Pantheon.
terminus aliases
# Drush Behat driver fails without this option.
echo "\$options['strict'] = 0;" >> ~/.drush/pantheon.aliases.drushrc.php

TERMINUS_ENV=$CIRCLE_BUILD_NUM

export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://'$TERMINUS_ENV'-'$TERMINUS_SITE'.pantheonsite.io/"}, "Drupal\\DrupalExtension" : {"drush" :   {  "alias":  "@pantheon.'$TERMINUS_SITE'.'$TERMINUS_ENV'" }}}}'
./vendor/bin/behat --config=behat/behat-pantheon.yml

File

tests/behat/run-behat.sh
View source
  1. #!/bin/bash
  2. # Create a drush alias file so that Behat tests can be executed against Pantheon.
  3. terminus aliases
  4. # Drush Behat driver fails without this option.
  5. echo "\$options['strict'] = 0;" >> ~/.drush/pantheon.aliases.drushrc.php
  6. TERMINUS_ENV=$CIRCLE_BUILD_NUM
  7. export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://'$TERMINUS_ENV'-'$TERMINUS_SITE'.pantheonsite.io/"}, "Drupal\\DrupalExtension" : {"drush" : { "alias": "@pantheon.'$TERMINUS_SITE'.'$TERMINUS_ENV'" }}}}'
  8. ./vendor/bin/behat --config=behat/behat-pantheon.yml