rubotium 0.0.30 → 0.0.31

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: 52908d4749bb9c3dc4d42f52f389d31032b2d429
4
- data.tar.gz: f551b743fe16dba4e75d1fbebfe00a23a2fef16c
3
+ metadata.gz: 5781f19670f7ac27a7d85af11cf7ed1c605490e0
4
+ data.tar.gz: 799bfe06c1cc5675ccbe2a7faa32da340c7f26f1
5
5
  SHA512:
6
- metadata.gz: 969cfdf4646cc8a81aab5687e9a7de0865cf133cb4be7251b7ca9c5d3519186a8fd0c4c9d8936f0fdadbcf6d73c53b30a2e51e7bf928bb6b79f149cb38bf3692
7
- data.tar.gz: f6ab4623740b742c164ff37601f3d5df6d42c9a7286052508b22fab07c950da7c2bfc66f4ff7746937115f9713633d989c5fb928f0c7f31dfc83597b5368c8d7
6
+ metadata.gz: 1c07c369ccf64c17ad14e2eea2c97e14653ad17d4a38a709938ead40f88b159730505b04f67c3c2eaeb052de34ac9067d46b9061f5da9fea672630329a198931
7
+ data.tar.gz: 84f609939acc5b25668efc47364dbd1875d3ad990b253d4e7511432121b3c2b8d9a0b57d39ae0d665eb74d087041df480e43b9ed40455b832ae71dba59c6870a
@@ -12,8 +12,8 @@ opts = Trollop::options do
12
12
  opt :device, 'Match devices', :type => :string, :short => '-d'
13
13
  opt :sdk, 'Run on devices with sdk', :type => :string, :short => '-k'
14
14
  opt :runner, 'Test runner', :type => :string, :short => '-r'
15
- opt :annotation, 'Run annotated tests', :type => :string, :short => '-n'
16
- opt :exclude, 'Run annotated tests', :type => :string, :short => '-e'
15
+ opt :annotation, 'Run tests with annotation', :type => :string, :short => '-n'
16
+ opt :excludes, 'Run tests without annotations',:type => :strings, :short => '-e'
17
17
  opt :helper_apk_path, 'Path to the helper .apk file', :type => :string, :short => '-H'
18
18
  opt :serial, 'Device serial', :type => :string, :short => '-s'
19
19
  end
@@ -29,7 +29,7 @@ params = {
29
29
  :device_sdk => opts[:sdk],
30
30
  :runner => opts[:runner],
31
31
  :annotation => opts[:annotation],
32
- :exclude => opts[:exclude],
32
+ :excludes => opts[:excludes],
33
33
  :helper_apk_path => opts[:helper_apk_path]
34
34
  }
35
35
 
@@ -75,8 +75,9 @@ module Rubotium
75
75
  }
76
76
 
77
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
78
+ if opts[:excludes]
79
+ excluded_suites = []
80
+ opts[:excludes].each { |exclude| excluded_suites.concat(Rubotium::TestCasesReader.new(devices.first, tests_package, { :annotation => exclude}).read_tests) }
80
81
  test_suites.reject!{ |test| excluded_suites.include? test }
81
82
 
82
83
  puts "Excluded tests:"
@@ -1,3 +1,3 @@
1
1
  module Rubotium
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
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.30
4
+ version: 0.0.31
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-07-22 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler