rubotium 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rubotium +2 -0
- data/lib/rubotium/version.rb +1 -1
- data/lib/rubotium.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72a0a8a9309f30ba6bde7cef2da18b2ee95baf1
|
4
|
+
data.tar.gz: f26ad1f865052e9189f2c447a1cbcd193f8e9190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca53fbb7918edc915eae7ed05bdf6a89bb569a7fbf7e3e472adb9d9c9cc03b1dd84154e6a09f244dc0b62f6cf62dbbd603fcd85042b409de7a87f80ee7974589
|
7
|
+
data.tar.gz: 394f30eda56f8c946c70ff18f6d9ccb35a5aa645d8d410c84a715c6e5515321b4ef0fa32b29d04e82cc117eb4d9f374947f90c36c72509b7fa939853e9fbcc98
|
data/bin/rubotium
CHANGED
@@ -13,6 +13,7 @@ opts = Trollop::options do
|
|
13
13
|
opt :sdk, 'Run on devices with sdk', :type => :string, :short => '-k'
|
14
14
|
opt :runner, 'Test runner', :type => :string, :short => '-r'
|
15
15
|
opt :annotation, 'Run annotated tests', :type => :string, :short => '-n'
|
16
|
+
opt :exclude, 'Run annotated tests', :type => :string, :short => '-e'
|
16
17
|
opt :helper_apk_path, 'Path to the helper .apk file', :type => :string, :short => '-H'
|
17
18
|
opt :serial, 'Device serial', :type => :string, :short => '-s'
|
18
19
|
end
|
@@ -28,6 +29,7 @@ params = {
|
|
28
29
|
:device_sdk => opts[:sdk],
|
29
30
|
:runner => opts[:runner],
|
30
31
|
:annotation => opts[:annotation],
|
32
|
+
:exclude => opts[:exclude],
|
31
33
|
:helper_apk_path => opts[:helper_apk_path]
|
32
34
|
}
|
33
35
|
|
data/lib/rubotium/version.rb
CHANGED
data/lib/rubotium.rb
CHANGED
@@ -74,7 +74,13 @@ module Rubotium
|
|
74
74
|
device
|
75
75
|
}
|
76
76
|
|
77
|
-
test_suites = Rubotium::TestCasesReader.new(devices.first, tests_package, { :annotation=>opts[:annotation]}).read_tests
|
77
|
+
test_suites = Rubotium::TestCasesReader.new(devices.first, tests_package, { :annotation => opts[:annotation]}).read_tests
|
78
|
+
if opts[:exclude]
|
79
|
+
excluded_suites = Rubotium::TestCasesReader.new(devices.first, tests_package, { :annotation => opts[:exclude]}).read_tests
|
80
|
+
test_suites.reject!{|element|
|
81
|
+
excluded_suites.include? element
|
82
|
+
}.count
|
83
|
+
end
|
78
84
|
|
79
85
|
puts "There are #{test_suites.count} tests to run"
|
80
86
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubotium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slawomir Smiechura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|