-
-
Save cordoval/7165870 to your computer and use it in GitHub Desktop.
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
#!/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 --keep-order' | |
#PARALLEL_COMMAND='xargs -r -I{}' | |
BEHAT_COMMAND='./bin/behat --ansi --tags={}' | |
grep -m 1 '@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