rubotium 0.0.23 → 0.0.24

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: 40fc305275432595df104433133086fa746bd09c
4
- data.tar.gz: 4a9bf9a5c423fa4ba10ae7f38fdcf3b3425f6f0e
3
+ metadata.gz: fefb30b1efc7287d1db4fbf534550a194b82d49a
4
+ data.tar.gz: 433f676076146895d63c3a50f08d833504c4c7bc
5
5
  SHA512:
6
- metadata.gz: 42af5335b768bf4e10c26161aaf862a601afcdec13b809eb93b5205f1b6f28daaa95fdb29ca3ce53be33a2239d24a7b6331849f62999d883ec4020b06f4525e2
7
- data.tar.gz: e306502eb90865f7836dd7ab25b3d935fbc3689b4a3e4a555abefd609fe94bf13afa547d52db18ea154f94f132168f35d7e87751d61f874fdfe838fa42c0e62e
6
+ metadata.gz: fd3710871a07d0e09ecccbc08b569ff56102f54805c965c2dac3e8c54fef48696d5b7257356632a90e540c87cece15adeec48318eac8b60667d095ce4ed9f6e4
7
+ data.tar.gz: 2d282cd942b4a4be853aca4d6d7781746b595647bd6c03dc6e1de92ed4e1fd7ec3595d68ed80c13e99abf13427ff6803fb6afd85b146ac8d0455395d39c74cf9
@@ -9,5 +9,13 @@ module Rubotium
9
9
  def name
10
10
  "#{package_name}##{test_name}"
11
11
  end
12
+
13
+ def ==(other)
14
+ name == other.name
15
+ end
16
+
17
+ def eql?(other)
18
+ name == other.name
19
+ end
12
20
  end
13
21
  end
@@ -1,3 +1,3 @@
1
1
  module Rubotium
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
data/lib/rubotium.rb CHANGED
@@ -62,10 +62,10 @@ module Rubotium
62
62
  devices = Devices.new(:name => opts[:device_matcher], :sdk => opts[:device_sdk], :serial=> opts[:serial]).all
63
63
 
64
64
  devices = Parallel.map(devices, :in_threads => devices.count) {|device|
65
- # device.uninstall application_package.name
66
- # device.install application_package.path
67
- # device.uninstall tests_package.name
68
- # device.install tests_package.path
65
+ device.uninstall application_package.name
66
+ device.install application_package.path
67
+ device.uninstall tests_package.name
68
+ device.install tests_package.path
69
69
  if !opts[:helper_apk_path].nil?
70
70
  device.uninstall helper_package.name
71
71
  device.install helper_package.path
@@ -77,9 +77,10 @@ module Rubotium
77
77
  test_suites = Rubotium::TestCasesReader.new(devices.first, tests_package, { :annotation => opts[:annotation]}).read_tests
78
78
  if opts[:exclude]
79
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
- }
80
+ test_suites.reject!{ |excluded_suite| excluded_suites.include? excluded_suite }
81
+
82
+ puts "Excluded tests:"
83
+ excluded_suites.each{ |excluded| puts excluded.name }
83
84
  end
84
85
 
85
86
  puts "There are #{test_suites.count} tests to run"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubotium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slawomir Smiechura