calabash parallel execution
Watch a quick demo here:
https://www.youtube.com/watch?v=sK3s0txeJvc
Run calabash-android tests in parallel on multiple connected devices. This is inspired by parallel_tests https://rubygems.org/gems/parallel_tests
eg. bundle exec parallel_calabash -a my.apk -o'--format pretty' features/ --serialize-stdout
Installation
Add this line to your application's Gemfile:
gem 'parallel_calabash'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install parallel_calabash
Usage
Usage: parallel_calabash [options]
Example: parallel_calabash -a my.apk -o 'cucumber_opts_like_tags_profile_etc_here' features/
-h, --help Show this
-v, --version Show version
-a, --apk apk_path apk file path
-o, --cucumber_opts '[OPTIONS]' execute with those cucumber
-d distribution_tag, divide features into groups as per occurrence of given tag
--distribution-tag
--serialize-stdout Serialize stdout output show output only after process completion
REPROTING
use ENV['TEST_PROCESS_NUMBER'] environment variable in your ruby scripts to find out the process number. you can use this for reporting purpose.
eg. modify default profile in cucumber.yml as below to get different report from different process
default: --format html --out reports/Automation_report_<%= ENV['TEST_PROCESS_NUMBER'] %>.html --format pretty
Contributing
- Fork it ( https://github.com/[my-github-username]/parallel_calabash/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request