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
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: parallel_calabash [options]
Example: parallel_calabash -a my.apk -o 'cucumber_opts_like_tags_profile_etc_here' features/
-h, --help Show this message
-v, --version Show version
-a, --apk apk_path apk file path
-d, --distribution-tag tag divide features into groups as per occurrence of given tag
-o, --cucumber_opts '[OPTIONS]' execute with those cucumber options
--serialize-stdout Serialize stdout output, nothing will be written until everything is done
--group-by-scenarios Distribute equally as per scenarios. This uses cucumber dry run
--concurrent Run tests concurrently. Each test will run once on each device.
use ENV['TEST_PROCESS_NUMBER'] environment variable in your ruby scripts to find out the process number. you can use this for reporting purpose OR process specific action.
To get device model info, use ENV['DEVICE_INFO'] env variable.
eg. modify default profile in cucumber.yml as below to get different report from different process
default: --format html --out reports/Report_<%=ENV['DEVICE_INFO']%>_<%= ENV['TEST_PROCESS_NUMBER']%>.html --format pretty
- 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