Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radmiraal/293fd328fe10eeee90dc to your computer and use it in GitHub Desktop.
Save radmiraal/293fd328fe10eeee90dc to your computer and use it in GitHub Desktop.
Run behat tests on CI with internal php webserver
#!/bin/bash
# Searches for all behat.ci.yaml files in the project and runs the tests
FLOW_CONTEXT=Development/Behat php -S 0.0.0.0:8452 -t Web/ &
phpPid=$!
find . -type f -path "*/Tests/Behavior/behat.ci.yml" -print0 | while IFS= read -r -d $'\0' line; do
bin/behat -c $line
done
kill $phpPid
# Behat distribution configuration
#
# Override with behat.yml for local configuration.
#
default:
paths:
features: Features
bootstrap: %behat.paths.features%/Bootstrap
extensions:
Behat\MinkExtension\Extension:
files_path: features/Resources
show_cmd: 'open %s'
goutte: ~
selenium2: ~
# Project base URL
#
# Use BEHAT_PARAMS="extensions[Behat\MinkExtension\Extension][base_url]=http://example.local/" for configuration during runtime.
#
base_url: http://127.0.0.1:8452/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment