Create the following structure:
mymodule
tests
behat
mymodule.feature
bootstrap
FeatureContext.php
Read instructions here: https://github.com/silverstripe-labs/silverstripe-behat-extension
- In order to run behat tests you need to have either phantomjs or selenium running locally.
- Also make sure you've got $_FILE_TO_URL_MAPPING
set up in your
_ss_environment.php
file.
brew update
brew install selenium-server-standalone
brew upgrade selenium-server-standalone
Additionally you'll need the Chrome Driver. Download it from https://sites.google.com/a/chromium.org/chromedriver/downloads
and move it your bin
directory, e.g. mv chromedriver /usr/local/bin
Download latest selenium server from http://www.seleniumhq.org/download/
java -jar selenium-server-standalone-2.44.0.jar
brew update
brew install phantomjs
./phantomjs --webdriver=4444