Skip to content

Instantly share code, notes, and snippets.

@jakzal
Last active June 7, 2016 01:24
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jakzal/7153877 to your computer and use it in GitHub Desktop.
Save jakzal/7153877 to your computer and use it in GitHub Desktop.
Running behat scenarios parallelized (by sprint)
#!/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
@exu
Copy link

exu commented Oct 25, 2013

How do you handle parallel selenium sessions? maybe by Grid + Nodes + different profiles per process?

@jakzal
Copy link
Author

jakzal commented Jan 23, 2014

A script to run selenium grid: https://gist.github.com/jakzal/8583518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment