rubotium 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubotium/runnable_test.rb +8 -0
- data/lib/rubotium/version.rb +1 -1
- data/lib/rubotium.rb +8 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fefb30b1efc7287d1db4fbf534550a194b82d49a
|
4
|
+
data.tar.gz: 433f676076146895d63c3a50f08d833504c4c7bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd3710871a07d0e09ecccbc08b569ff56102f54805c965c2dac3e8c54fef48696d5b7257356632a90e540c87cece15adeec48318eac8b60667d095ce4ed9f6e4
|
7
|
+
data.tar.gz: 2d282cd942b4a4be853aca4d6d7781746b595647bd6c03dc6e1de92ed4e1fd7ec3595d68ed80c13e99abf13427ff6803fb6afd85b146ac8d0455395d39c74cf9
|
data/lib/rubotium/version.rb
CHANGED
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
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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!{|
|
81
|
-
|
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"
|