parallel_calabash 0.1.1 → 0.1.2

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: 4c1de47f617c12e793aa8b98f2d22bcab741cc0f
4
- data.tar.gz: 593c627f3f37adb741ce2b9ea943c86e39c40e96
3
+ metadata.gz: 3cc4d8fc0f272da9f707d70b4362d997df2c8633
4
+ data.tar.gz: eaaa148652e0f6aa7b9a9dda522d9e13883d6b63
5
5
  SHA512:
6
- metadata.gz: c1ebe0e759e48292b1588d3983fd11aeb601cde950e96f9d586d687e4876b0648db8083757ace0e40c966b2bacbfc3c5bf296d0ac95701700f63f6b67af7260e
7
- data.tar.gz: 4317dc8ed774b7026e414ad90e73a89ea3d529201c7afdc0a780829b9a321f47d9a4941f3a08e0eafcceb69d7363314abcfcfb325e707e7b0f83ef309588f10a
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.include?("device ")
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
@@ -1,3 +1,3 @@
1
1
  module ParallelCalabash
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-03-01 00:00:00.000000000 Z
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