Skip to content

Run behave tests in Parallel

Vishal edited this page Dec 7, 2015 · 2 revisions

Welcome to the behave_parallel_demo wiki!

##Works exact steps on Ubuntu:

Steps:

  1. Clone this repo
  2. Goto to root of the project
  3. Create a virtual evn
  • virtualenv .env
  • source .env/bin/activate
  • pip install -r requirements.txt

###Run Features in parallel /usr/bin/time behave --processes 5 --parallel-element feature

###Run Scenario in parallel /usr/bin/time behave --processes 5 --parallel-element scenario

###How I run feature: /usr/bin/time behave --processes "${PROCESS_COUNT}" --parallel-element feature --junit --junit-directory=xmlrunner -v -t "${TAGS_LIST}" -f rerun -o rerun.txt -f plain -T --no-skipped --tags=~@xfail features/

###How I run Scenario: /usr/bin/time behave --processes "${PROCESS_COUNT}" --parallel-element scenario --junit --junit-directory=xmlrunner -v -t "${TAGS_LIST}" -f rerun -o rerun.txt -f plain -T --no-skipped --tags=~@xfail features/

Clone this wiki locally