Last active
June 7, 2016 01:24
-
-
Save jakzal/7153877 to your computer and use it in GitHub Desktop.
Running behat scenarios parallelized (by sprint)
This file contains 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
#!/usr/bin/env bash | |
# finds all sprint tags (like @sprint:42) and runs them in a reversed order (won't run not tagged scenarios) | |
PARALLEL_COMMAND='parallel --gnu' | |
#PARALLEL_COMMAND='xargs -I{}' | |
BEHAT_COMMAND='./bin/behat --ansi --tags={}' | |
grep '@sprint:' features/*.feature | sed -e 's/.*\(@sprint:[0-9]*\).*/\1/' | sort -ur | $PARALLEL_COMMAND $BEHAT_COMMAND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you handle parallel selenium sessions? maybe by Grid + Nodes + different profiles per process?