rubotium 0.0.21 → 0.0.22

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: 11043211bad40cbe886f3b668751f1f8f9021aae
4
- data.tar.gz: 9e5638b511f1fa76e12ce7dc983b323e17177898
3
+ metadata.gz: b72a0a8a9309f30ba6bde7cef2da18b2ee95baf1
4
+ data.tar.gz: f26ad1f865052e9189f2c447a1cbcd193f8e9190
5
5
  SHA512:
6
- metadata.gz: 00e50b38b93cbd2fc3aa6ac989bf6f6c375fe6107568fe03ddf1b5c02941bc07d2a20763158962a3c773440d8a7d0d34b74d2bed61ed8c94cac6c736bdad225e
7
- data.tar.gz: 196b212129519080a6e01b05432db3d6d6c3f2f243040c962463613e32e3a8aa7c09a781cd6a2385ab08d64a11dd2dd9911231c1027cc2388e2338a73ef91bae
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
 
@@ -1,3 +1,3 @@
1
1
  module Rubotium
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
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.21
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-13 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler