rubotium 0.0.28 → 0.0.29
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 +4 -4
- data/lib/rubotium/runnable_test.rb +2 -2
- data/lib/rubotium/version.rb +1 -1
- data/lib/rubotium.rb +1 -1
- data/spec/lib/rubotium/runnable_test_spec.rb +29 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e20b3d85c0dfdcca8d872a85c9d8c52083a5193
|
4
|
+
data.tar.gz: 966af3ee04131eec01bcd7fb7965976f4c562fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 234e9a59efe88348e5db0054a957c60cf00d1b3b7ffff12c97112ba1e3f87d516830bd255a361bc3ea8415e5f832d3692ab3b8ba70451499f16f6aee1838fb8a
|
7
|
+
data.tar.gz: 44017f02510dc9787d21f73742a2a183396601777bab420f212cf4a6f7a6abe8b5235354475abef10613087f8c6b4b047bdec27616ee8e00c538b7c07e07349e
|
@@ -11,11 +11,11 @@ module Rubotium
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def ==(other)
|
14
|
-
other.instance_of?(self.class) &&
|
14
|
+
other.instance_of?(self.class) && name == other.name
|
15
15
|
end
|
16
16
|
|
17
17
|
def eql?(other)
|
18
|
-
name == other.name
|
18
|
+
other.instance_of?(self.class) && name == other.name
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/rubotium/version.rb
CHANGED
data/lib/rubotium.rb
CHANGED
@@ -77,7 +77,7 @@ 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!{ |test| excluded_suites.
|
80
|
+
test_suites.reject!{ |test| excluded_suites.include? test }
|
81
81
|
|
82
82
|
puts "Excluded tests:"
|
83
83
|
excluded_suites.each{ |excluded| puts excluded.name }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Rubotium::RunnableTest do
|
4
|
+
let(:test1) {Rubotium::RunnableTest.new("PackageName", "testName")}
|
5
|
+
|
6
|
+
context 'when two instances have the same name' do
|
7
|
+
let(:test2) {Rubotium::RunnableTest.new("PackageName", "testName")}
|
8
|
+
|
9
|
+
it 'eql? should return equal' do
|
10
|
+
(test1.eql? test2).should be true
|
11
|
+
end
|
12
|
+
|
13
|
+
it '== should return equal' do
|
14
|
+
(test1 == test2).should be true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'when two instances have different names' do
|
19
|
+
let(:test2) {Rubotium::RunnableTest.new("PackageNameOther", "testNameOther")}
|
20
|
+
|
21
|
+
it 'eql? should return false' do
|
22
|
+
(test1.eql? test2).should be false
|
23
|
+
end
|
24
|
+
|
25
|
+
it '== should return equal' do
|
26
|
+
(test1 == test2).should be false
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
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.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slawomir Smiechura
|
@@ -204,6 +204,7 @@ files:
|
|
204
204
|
- spec/lib/rubotium/formatters/junit_formatter_spec.rb
|
205
205
|
- spec/lib/rubotium/memory/data_point_spec.rb
|
206
206
|
- spec/lib/rubotium/memory/monitor_spec.rb
|
207
|
+
- spec/lib/rubotium/runnable_test_spec.rb
|
207
208
|
- spec/lib/rubotium/test_runners/instrumentation_test_runner_spec.rb
|
208
209
|
- spec/lib/rubotium/tests_runner_spec.rb
|
209
210
|
- spec/lib/rubotium_spec.rb
|
@@ -257,6 +258,7 @@ test_files:
|
|
257
258
|
- spec/lib/rubotium/formatters/junit_formatter_spec.rb
|
258
259
|
- spec/lib/rubotium/memory/data_point_spec.rb
|
259
260
|
- spec/lib/rubotium/memory/monitor_spec.rb
|
261
|
+
- spec/lib/rubotium/runnable_test_spec.rb
|
260
262
|
- spec/lib/rubotium/test_runners/instrumentation_test_runner_spec.rb
|
261
263
|
- spec/lib/rubotium/tests_runner_spec.rb
|
262
264
|
- spec/lib/rubotium_spec.rb
|