Skip to content

vishalm/behave_parallel_demo

Repository files navigation

Welcome to the behave_parallel_demo wiki!

Follow on Twitter

CI Provider Build Status Time Taken(Approx)
Github Actions GitHub Actions status 40+ Sec Github Status
Azure DevOps Build Status 31+ Sec Azure Stats
Travis Travis 33+ Sec Travis Status

Must do

How what want to manage virtual env but make sure you are following these steps

  • virtualenv .env
  • source .env/bin/activate
  • pip install -r requirements.txt
  • pip install git+git://github.com/hugeinc/behave-parallel.git@a57eff3087aae9bd7519a7d4fc15228611db20b9#egg=behave-parallel --upgrade ### Super importent

##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
  • pip install git+git://github.com/hugeinc/behave-parallel.git@a57eff3087aae9bd7519a7d4fc15228611db20b9#egg=behave-parallel --upgrade ### Super importent
  • pip freeze

###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/

Actual Source:

https://github.com/vishalm/behave-parallel/blob/upstreamsync/README.md