rutema 2.0.0.pre6 → 2.0.0.pre7
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/History.txt +2 -0
- data/lib/rutema/core/engine.rb +19 -5
- data/lib/rutema/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ec26da12bbbd9a99aa0e244a2faa8e197e6243b
|
|
4
|
+
data.tar.gz: 19e2e19a6e820bad2d0615b05dc97a13eff8dc6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e212ea03baacf42c0a9b6d73429f2557e248f92c26b7fdbbf35ed7558e9e9e4c9cd3578452e18ad9342256f290de132d43f6c07baf9710922713d6fce05bc09f
|
|
7
|
+
data.tar.gz: aa8f8b7b52a074a83f718b5cab9872b0be8dcc0a2d625b5ebe527267255d4c5b3fdf4663a09c34c0cf04ebecd7cb15e41980153eafd65624909d57fb5aab2923
|
data/History.txt
CHANGED
data/lib/rutema/core/engine.rb
CHANGED
|
@@ -30,8 +30,12 @@ module Rutema
|
|
|
30
30
|
message("start")
|
|
31
31
|
check,setup,teardown,tests=*parse(test_identifier)
|
|
32
32
|
if tests.empty?
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
if is_special?(test_identifier)
|
|
34
|
+
run_scenarios([check],nil)
|
|
35
|
+
else
|
|
36
|
+
@dispatcher.exit
|
|
37
|
+
raise RutemaError,"Did not parse any tests succesfully"
|
|
38
|
+
end
|
|
35
39
|
else
|
|
36
40
|
@runner.setup=setup
|
|
37
41
|
@runner.teardown=teardown
|
|
@@ -49,10 +53,10 @@ module Rutema
|
|
|
49
53
|
#we're either parsing all of the tests, or just one
|
|
50
54
|
#make sure the one test is on the list
|
|
51
55
|
if test_identifier
|
|
52
|
-
if
|
|
53
|
-
specs<<parse_specification(File.expand_path(test_identifier))
|
|
56
|
+
if is_spec_included?(test_identifier)
|
|
57
|
+
specs<<parse_specification(File.expand_path(test_identifier)) unless is_special?(test_identifier)
|
|
54
58
|
else
|
|
55
|
-
error(File.expand_path(test_identifier),"
|
|
59
|
+
error(File.expand_path(test_identifier),"does not exist in the configuration")
|
|
56
60
|
end
|
|
57
61
|
else
|
|
58
62
|
specs=parse_specifications(@configuration.tests)
|
|
@@ -119,6 +123,16 @@ module Rutema
|
|
|
119
123
|
end
|
|
120
124
|
return nil
|
|
121
125
|
end
|
|
126
|
+
def is_spec_included? test_identifier
|
|
127
|
+
full_path=File.expand_path(test_identifier)
|
|
128
|
+
return @configuration.tests.include?(full_path) || is_special?(test_identifier)
|
|
129
|
+
end
|
|
130
|
+
def is_special? test_identifier
|
|
131
|
+
full_path=File.expand_path(test_identifier)
|
|
132
|
+
return full_path==@configuration.check ||
|
|
133
|
+
full_path==@configuration.setup ||
|
|
134
|
+
full_path==@configuration.teardown
|
|
135
|
+
end
|
|
122
136
|
end
|
|
123
137
|
class Dispatcher
|
|
124
138
|
INTERVAL=0.01
|
data/lib/rutema/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rutema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0.
|
|
4
|
+
version: 2.0.0.pre7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vassilis Rizopoulos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: patir
|