parallel_calabash 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/lib/parallel_calabash/adb_helper.rb +2 -2
- data/lib/parallel_calabash/version.rb +1 -1
- data/spec/lib/parallel_calabash/adb_helper_spec.rb +30 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc4d8fc0f272da9f707d70b4362d997df2c8633
|
4
|
+
data.tar.gz: eaaa148652e0f6aa7b9a9dda522d9e13883d6b63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa58d6085e7c9718173782545f29dc66c7b10331c79641133be8fdc0dc172ed252e2e046241f56000b9d8073791f4928c85077dc5b6e84e76351b4fd6625b04f
|
7
|
+
data.tar.gz: 0d9cba03a4a9f904831bba7bc6277af437ad856e91ab42ef896a7f8901c10c01aeba2059a8281d882e59573ef9ea01537475e06a48bdfdc8158cd91bdad7de2a
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# calabash parallel execution
|
2
2
|
|
3
|
-
# Now Supported on Windows
|
4
|
-
|
5
3
|
## Watch a quick demo here:
|
6
4
|
|
7
5
|
https://www.youtube.com/watch?v=sK3s0txeJvc
|
@@ -37,7 +35,6 @@ Example: parallel_calabash -a my.apk -o 'cucumber_opts_like_tags_profile_etc_her
|
|
37
35
|
-h, --help Show this message
|
38
36
|
-v, --version Show version
|
39
37
|
-a, --apk apk_path apk file path
|
40
|
-
-d, --distribution-tag tag divide features into groups as per occurrence of given tag
|
41
38
|
-o, --cucumber_opts '[OPTIONS]' execute with those cucumber options
|
42
39
|
--serialize-stdout Serialize stdout output, nothing will be written until everything is done
|
43
40
|
--group-by-scenarios Distribute equally as per scenarios. This uses cucumber dry run
|
@@ -19,7 +19,7 @@ module ParallelCalabash
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def device_id_and_model line
|
22
|
-
if line.
|
22
|
+
if line.match(/device(?!s)/)
|
23
23
|
[line.split(" ").first,line.scan(/model:(.*) device/).flatten.first]
|
24
24
|
end
|
25
25
|
end
|
@@ -27,4 +27,4 @@ module ParallelCalabash
|
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'parallel_calabash/adb_helper'
|
4
|
+
describe ParallelCalabash::AdbHelper do
|
5
|
+
|
6
|
+
describe :device_id_and_model do
|
7
|
+
it 'should not match any devices in list of devices attached line' do
|
8
|
+
expect(ParallelCalabash::AdbHelper.device_id_and_model("List of devices attached")).to eq nil
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should match devices if there is a space after the word device' do
|
12
|
+
expect(ParallelCalabash::AdbHelper.device_id_and_model("emulator-5554 device ")).to eq \
|
13
|
+
["emulator-5554", nil]
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'should match devices if there is not a space after the word device' do
|
17
|
+
expect(ParallelCalabash::AdbHelper.device_id_and_model("emulator-5554 device")).to eq \
|
18
|
+
["emulator-5554", nil]
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should not match a device if it is an empty line' do
|
22
|
+
expect(ParallelCalabash::AdbHelper.device_id_and_model("")).to eq nil
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should match physical devices' do
|
26
|
+
output = "192.168.56.101:5555 device product:vbox86p model:device1 device:vbox86p"
|
27
|
+
expect(ParallelCalabash::AdbHelper.device_id_and_model(output)).to eq ["192.168.56.101:5555", "device1"]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajdeep
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/parallel_calabash/version.rb
|
77
77
|
- parallel_calabash.gemspec
|
78
78
|
- sample_output_with_4_processes.txt
|
79
|
+
- spec/lib/parallel_calabash/adb_helper_spec.rb
|
79
80
|
- spec/lib/parallel_calabash/feature_grouper_spec.rb
|
80
81
|
- spec/lib/parallel_calabash/runner_spec.rb
|
81
82
|
- spec/spec_helper.rb
|
@@ -110,6 +111,7 @@ signing_key:
|
|
110
111
|
specification_version: 4
|
111
112
|
summary: calabash android tests in parallel
|
112
113
|
test_files:
|
114
|
+
- spec/lib/parallel_calabash/adb_helper_spec.rb
|
113
115
|
- spec/lib/parallel_calabash/feature_grouper_spec.rb
|
114
116
|
- spec/lib/parallel_calabash/runner_spec.rb
|
115
117
|
- spec/spec_helper.rb
|