Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Automatic tests using Behat

amitaibu edited this page Nov 6, 2012 · 3 revisions
git checkout behat
cd behat
# Install composer
curl -sk https://getcomposer.org/installer | php
php composer.phar install

# Create local YML file
cp behat.local.yml.example behat.local.yml

With your text editor, edit the new behat.local.yml and change the base_url.

default:
  extensions:
    Behat\MinkExtension\Extension:
      base_url:  http://localhost/openscholar
    Drupal\DrupalExtension\Extension:
      drush:
        alias: openscholar

Next we need to define a Drush alias. Create a aliases.drushrc.php typically located under ~/.drush. Make sure the uri and root properties are pointing to the correct place.

<?php

$aliases['openscholar'] = array(
  'uri' => 'http://localhost/openscholar',
  'root' => '/var/www/openscholar',
);

Last, execute all the tests

bin/behat

Clone this wiki locally