parallel_calabash 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3cc74523250c60f0398e05a6c48f836440f25a6
4
- data.tar.gz: 83f6df11b48c1f1bd8a005aed355f3eaf9a91cd3
3
+ metadata.gz: e12a0efd9b281f2bbe7c74af79a2a8e7a2bd9c59
4
+ data.tar.gz: a437a645b653017572a96b95308aef696b11f1ca
5
5
  SHA512:
6
- metadata.gz: 381b18478ffaa24329d6bbeb26834e479cbe1270606a1a401416562b84f61ec8d6b0eb229fbd4281927a7bbad7901d91057705fc7712d5da2fa277b3b6da096d
7
- data.tar.gz: 95cbc60ccee529eb91c750604081c1c9ea99bb1bd8b1f57df8261dcc3fee872805535dea1518b236d90a1d0f4898b2c09c5da30200df292db6c2cac6eebdc8d3
6
+ metadata.gz: 70c0107dd2be2f79a138b99f4fc58465d5d1626ca854212e1402ef38e3589030b26dee25a16a8d77c0181c6505567b118cb021e739d53ce12efdcfa42e303221
7
+ data.tar.gz: da3bbb993ff63c6ea6b2bf3475965e319cf4eb9e76a105c6391f615e387ce6759872d8bce1dbdda866a3ff186b1d70f8221f7a74a2df1022fe319f1df3ffe664
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # calabash parallel execution
2
2
 
3
- ## NOTE: This is not yet tested on windows.
3
+ ## Watch a quick demo here:
4
+
5
+ https://www.youtube.com/watch?v=sK3s0txeJvc
4
6
 
5
7
 
6
8
  Run calabash-android tests in parallel on multiple connected devices. This is inspired by parallel_tests https://rubygems.org/gems/parallel_tests
@@ -28,7 +28,7 @@ module ParallelCalabash
28
28
  device_for_current_process = ParallelCalabash::AdbHelper.device_for_process process_number
29
29
  env = env.merge({'AUTOTEST' => '1', 'ADB_DEVICE_ARG' => device_for_current_process, "TEST_PROCESS_NUMBER" => (process_number+1).to_s})
30
30
  separator = (WINDOWS ? ' & ' : ';')
31
- exports = env.map { |k, v| WINDOWS ? "(SET \"#{k}=#{v}\")" : "#{k}=#{v};export #{k}" }.join(' ')
31
+ exports = env.map { |k, v| WINDOWS ? "(SET \"#{k}=#{v}\")" : "#{k}=#{v};export #{k}" }.join(separator)
32
32
  exports + separator + cmd
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module ParallelCalabash
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,164 @@
1
+ bundle exec parallel_calabash -a DroidBootcamp.apk -o'-r features' features/ -d @test --serialize-stdout
2
+
3
+ *******************************
4
+ 3 DEVICES FOUND
5
+ *******************************
6
+ 3 processes for 8 features
7
+ 7015 KB/s (553331 bytes in 0.077s)
8
+ 4990 KB/s (553331 bytes in 0.108s)
9
+ 5188 KB/s (553331 bytes in 0.104s)
10
+ 5601 KB/s (40299 bytes in 0.007s)
11
+ 4221 KB/s (40299 bytes in 0.009s)
12
+ 4446 KB/s (40299 bytes in 0.008s)
13
+ Using the default profile...
14
+ Feature: five digit additions
15
+
16
+ @test
17
+ Scenario: five digit additions of two numbers # features/five_digit.feature:4
18
+ Given I set First operand as "55555" # features/step_definitions/calculator_steps.rb:1
19
+ And I set Second operand as "1" # features/step_definitions/calculator_steps.rb:5
20
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
21
+ Then I should get result as "55556" # features/step_definitions/calculator_steps.rb:9
22
+
23
+ Feature: single digit additions
24
+
25
+ @test
26
+ Scenario: single digit additions of 2 + 4 # features/single_digit_addition.feature:4
27
+ Given I set First operand as "1" # features/step_definitions/calculator_steps.rb:1
28
+ And I set Second operand as "2" # features/step_definitions/calculator_steps.rb:5
29
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
30
+ Then I should get result as "3" # features/step_definitions/calculator_steps.rb:9
31
+
32
+ @test
33
+ Scenario: single digit additions of 5 + 6 # features/single_digit_addition.feature:11
34
+ Given I set First operand as "5" # features/step_definitions/calculator_steps.rb:1
35
+ And I set Second operand as "6" # features/step_definitions/calculator_steps.rb:5
36
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
37
+ Then I should get result as "11" # features/step_definitions/calculator_steps.rb:9
38
+
39
+ 3 scenarios (3 passed)
40
+ 12 steps (12 passed)
41
+ 0m15.458s
42
+
43
+ ****** PROCESS 2 COMPLETED ******
44
+
45
+ Using the default profile...
46
+ Feature: eight digit additions
47
+
48
+ @test
49
+ Scenario: eight digit additions of two numbers # features/eight_digit.feature:4
50
+ Given I set First operand as "88888888" # features/step_definitions/calculator_steps.rb:1
51
+ And I set Second operand as "1" # features/step_definitions/calculator_steps.rb:5
52
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
53
+ Then I should get result as "88888889csd" # features/step_definitions/calculator_steps.rb:9
54
+
55
+ expected: "88888889csd"
56
+ got: "88888889"
57
+
58
+ (compared using ==)
59
+ (RSpec::Expectations::ExpectationNotMetError)
60
+ ./features/step_definitions/calculator_steps.rb:10:in `/^I should get result as "([^"]*)"$/'
61
+ features/eight_digit.feature:8:in `Then I should get result as "88888889csd"'
62
+
63
+ Feature: seven digit additions
64
+
65
+ @test
66
+ Scenario: seven digit additions of two numbers # features/seven_digit.feature:4
67
+ Given I set First operand as "7777777" # features/step_definitions/calculator_steps.rb:1
68
+ And I set Second operand as "1" # features/step_definitions/calculator_steps.rb:5
69
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
70
+ Then I should get result as "7777778" # features/step_definitions/calculator_steps.rb:9
71
+
72
+ Feature: Triple digit additions
73
+
74
+ @test
75
+ Scenario: triple digit additions of 102 + 102 # features/triple_digit_addition.feature:4
76
+ Given I set First operand as "102" # features/step_definitions/calculator_steps.rb:1
77
+ And I set Second operand as "102" # features/step_definitions/calculator_steps.rb:5
78
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
79
+ Then I should get result as "204" # features/step_definitions/calculator_steps.rb:9
80
+
81
+ @test
82
+ Scenario: triple digit additions of 500 + 500 # features/triple_digit_addition.feature:11
83
+ Given I set First operand as "500" # features/step_definitions/calculator_steps.rb:1
84
+ And I set Second operand as "500" # features/step_definitions/calculator_steps.rb:5
85
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
86
+ Then I should get result as "1000" # features/step_definitions/calculator_steps.rb:9
87
+
88
+ Failing Scenarios:
89
+ cucumber features/eight_digit.feature:4 # Scenario: eight digit additions of two numbers
90
+
91
+ 4 scenarios (1 failed, 3 passed)
92
+ 16 steps (1 failed, 15 passed)
93
+ 0m21.678s
94
+
95
+ ****** PROCESS 1 COMPLETED ******
96
+
97
+ Using the default profile...
98
+ Feature: double digit additions
99
+
100
+ @test
101
+ Scenario: double digit additions of 10 + 22 # features/double_digit_addition.feature:4
102
+ Given I set First operand as "10" # features/step_definitions/calculator_steps.rb:1
103
+ And I set Second operand as "22" # features/step_definitions/calculator_steps.rb:5
104
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
105
+ Then I should get result as "32" # features/step_definitions/calculator_steps.rb:9
106
+
107
+ Scenario: double digit additions of 55 + 45 # features/double_digit_addition.feature:10
108
+ Given I set First operand as "55 " # features/step_definitions/calculator_steps.rb:1
109
+ And I set Second operand as "45" # features/step_definitions/calculator_steps.rb:5
110
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
111
+ HTTPClient::KeepAliveDisconnected (HTTPClient::KeepAliveDisconnected)
112
+ features/double_digit_addition.feature:13:in `And I press "+"'
113
+ Then I should get result as "1000" # features/step_definitions/calculator_steps.rb:9
114
+
115
+ Feature: four digit additions
116
+
117
+ @test
118
+ Scenario: four digit additions of two numbers # features/four_digit.feature:4
119
+ Given I set First operand as "4444" # features/step_definitions/calculator_steps.rb:1
120
+ And I set Second operand as "1" # features/step_definitions/calculator_steps.rb:5
121
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
122
+ Then I should get result as "444csc5" # features/step_definitions/calculator_steps.rb:9
123
+
124
+ expected: "444csc5"
125
+ got: "4445"
126
+
127
+ (compared using ==)
128
+ (RSpec::Expectations::ExpectationNotMetError)
129
+ ./features/step_definitions/calculator_steps.rb:10:in `/^I should get result as "([^"]*)"$/'
130
+ features/four_digit.feature:8:in `Then I should get result as "444csc5"'
131
+
132
+ Feature: six digit additions
133
+
134
+ @test
135
+ Scenario: six digit additions of two numbers # features/six_digit.feature:4
136
+ Given I set First operand as "666666" # features/step_definitions/calculator_steps.rb:1
137
+ And I set Second operand as "1" # features/step_definitions/calculator_steps.rb:5
138
+ And I press "+" # calabash-android-0.5.2/lib/calabash-android/steps/press_button_steps.rb:17
139
+ Then I should get result as "666667" # features/step_definitions/calculator_steps.rb:9
140
+
141
+ Failing Scenarios:
142
+ cucumber features/double_digit_addition.feature:10 # Scenario: double digit additions of 55 + 45
143
+ cucumber features/four_digit.feature:4 # Scenario: four digit additions of two numbers
144
+
145
+ 4 scenarios (2 failed, 2 passed)
146
+ 16 steps (2 failed, 1 skipped, 13 passed)
147
+ 0m22.458s
148
+
149
+ ****** PROCESS 0 COMPLETED ******
150
+
151
+
152
+
153
+
154
+ ************ FINAL SUMMARY ************
155
+
156
+ Failing Scenarios:
157
+ cucumber features/double_digit_addition.feature:10 # Scenario: double digit additions of 55 + 45
158
+ cucumber features/four_digit.feature:4 # Scenario: four digit additions of two numbers
159
+ cucumber features/eight_digit.feature:4 # Scenario: eight digit additions of two numbers
160
+
161
+ 11 scenarios (3 failed, 8 passed)
162
+ 44 steps (3 failed, 1 skipped, 40 passed)
163
+
164
+ Took 0 Minutes, 24.84 Seconds
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_calabash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajdeep
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2014-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ files:
75
75
  - lib/parallel_calabash/runner.rb
76
76
  - lib/parallel_calabash/version.rb
77
77
  - parallel_calabash.gemspec
78
+ - sample_output_with_4_processes.txt
78
79
  - spec/lib/parallel_calabash/feature_grouper_spec.rb
79
80
  - spec/lib/parallel_calabash/runner_spec.rb
80
81
  - spec/spec_helper.rb
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  version: '0'
105
106
  requirements: []
106
107
  rubyforge_project:
107
- rubygems_version: 2.4.2
108
+ rubygems_version: 2.4.4
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: calabash android tests in parallel