rutema 2.0.0.pre2 → 2.0.0.pre3
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 +4 -1
- data/lib/rutema/application.rb +2 -4
- data/lib/rutema/core/engine.rb +1 -2
- data/lib/rutema/core/reporter.rb +2 -2
- 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: cabf538e86ed2673ac5431cc178ff853bd2742c8
|
|
4
|
+
data.tar.gz: e4a8b0b000d079df30bf627e2a111ce2a8636a62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffd874f95b6f362387125c2e41eb778a7f5246ffb5e5fff69edd260e37b10fe1feda42c6538f226b55f6f22cdcbef1fc7902f0c68dbc0da986990b23840523c1
|
|
7
|
+
data.tar.gz: 9b50992cba646e69ecb0a600f2c9972a8aa00f3b37a80a719a70e934fba344efdfcf6b857105c6a9fbc31bb19ceba4f6f1abe4484d65fccc7041ccc68e7a3d87
|
data/History.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
== 2.0.0 /2015-
|
|
1
|
+
== 2.0.0 /2015-09-10
|
|
2
2
|
* Completely rewritten execution engine
|
|
3
3
|
* dropped Ruby 1.8.x, 1.9.x support, added 2.x
|
|
4
4
|
* Rewritten configuration engine and new format for configuration files
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
* Core separated from standard implementations
|
|
7
7
|
* No database dependencies, no AR model.
|
|
8
8
|
* No more disk IO in unit tests
|
|
9
|
+
* pre3:
|
|
10
|
+
* errors now affect the rutema exit code (before it was only test failures)
|
|
11
|
+
* single test execution works with expected relative paths
|
|
9
12
|
|
|
10
13
|
== 1.3.0 /2012-11-28
|
|
11
14
|
* remove most of the gem dependencies by not requiring parsers and reporters in the core
|
data/lib/rutema/application.rb
CHANGED
|
@@ -13,10 +13,8 @@ module Rutema
|
|
|
13
13
|
@configuration.reporters||={}
|
|
14
14
|
@configuration.reporters[Rutema::Reporters::Console]||={:class=>Rutema::Reporters::Console, "silent"=>@silent} unless @bare
|
|
15
15
|
@configuration.reporters[Rutema::Reporters::Summary]||={:class=>Rutema::Reporters::Summary, "silent"=>(@silent||@bare)}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
application_flow
|
|
19
|
-
end
|
|
16
|
+
@engine=Rutema::Engine.new(@configuration)
|
|
17
|
+
application_flow
|
|
20
18
|
end
|
|
21
19
|
private
|
|
22
20
|
def parse_command_line args
|
data/lib/rutema/core/engine.rb
CHANGED
|
@@ -26,7 +26,6 @@ module Rutema
|
|
|
26
26
|
message("start")
|
|
27
27
|
check,setup,teardown,tests=*parse(test_identifier)
|
|
28
28
|
if tests.empty?
|
|
29
|
-
error(test_identifier,"Did not parse any tests succesfully")
|
|
30
29
|
@dispatcher.exit
|
|
31
30
|
raise RutemaError,"Did not parse any tests succesfully"
|
|
32
31
|
else
|
|
@@ -49,7 +48,7 @@ module Rutema
|
|
|
49
48
|
if @configuration.tests.include?(File.expand_path(test_identifier))
|
|
50
49
|
specs<<parse_specification(File.expand_path(test_identifier))
|
|
51
50
|
else
|
|
52
|
-
error(test_identifier,"Does not exist in the configuration")
|
|
51
|
+
error(File.expand_path(test_identifier),"Does not exist in the configuration")
|
|
53
52
|
end
|
|
54
53
|
else
|
|
55
54
|
specs=parse_specifications(@configuration.tests)
|
data/lib/rutema/core/reporter.rb
CHANGED
|
@@ -70,7 +70,7 @@ module Rutema
|
|
|
70
70
|
end
|
|
71
71
|
def update data
|
|
72
72
|
if data[:error]
|
|
73
|
-
puts ">ERROR: #{data[:error]}" unless @mode=="off"
|
|
73
|
+
puts ">ERROR: #{data.fetch(:test,"")} #{data[:error]}" unless @mode=="off"
|
|
74
74
|
elsif data[:test]
|
|
75
75
|
if data["phase"]
|
|
76
76
|
puts ">#{data["phase"]} #{data[:test]}" unless @mode=="silent" || @mode=="off"
|
|
@@ -106,7 +106,7 @@ module Rutema
|
|
|
106
106
|
puts specs.map{|spec| " #{spec.name} - #{spec.filename}" if failures.include?(spec.name)}.compact.join("\n")
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
|
-
return failures.size
|
|
109
|
+
return failures.size+errors.size
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
end
|
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.pre3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vassilis Rizopoulos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: patir
|