-
-
Save radmiraal/293fd328fe10eeee90dc to your computer and use it in GitHub Desktop.
Run behat tests on CI with internal php webserver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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