Skip to content

Commit

Permalink
Update behat instructions and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Mar 16, 2018
1 parent f0ce4f9 commit 4653334
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Note: Currently firefox 31-ESR is recommended
# Note: Currently chrome latest is recommended
# Behat test setup requires an `.env` with `SS_BASE_URL` defined, as well
# as each of the following commands to initiate a test run:
# ========================================================================= #
# composer require silverstripe/recipe-testing 1.0.x-dev
# vendor/bin/selenium-server-standalone -Dwebdriver.firefox.bin="/Applications/Firefox31.app/Contents/MacOS/firefox-bin"
# vendor/bin/serve --bootstrap-file cms/tests/behat/serve-bootstrap.php
# vendor/bin/behat @<module>
# composer require silverstripe/recipe-testing ^1
# vendor/bin/behat-ss @<module>
# ========================================================================= #
default:
suites: []
extensions:
SilverStripe\BehatExtension\MinkExtension:
default_session: selenium2
javascript_session: selenium2
selenium2:
browser: firefox
default_session: facebook_web_driver
javascript_session: facebook_web_driver
facebook_web_driver:
browser: chrome
wd_host: "http://127.0.0.1:9515" #chromedriver port
browser_name: chrome
SilverStripe\BehatExtension\Extension:
bootstrap_file: cms/tests/behat/serve-bootstrap.php
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php
screenshot_path: %paths.base%/artifacts/screenshots
retry_seconds: 4 # default is 2

0 comments on commit 4653334

Please sign in to comment.