rutema 2.0.0.pre2 → 2.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5d1eca5eeef197e188ff4906e475f362da0628e
4
- data.tar.gz: 44bf701592c77e80d3a45d7a2c909fee3af5d8aa
3
+ metadata.gz: cabf538e86ed2673ac5431cc178ff853bd2742c8
4
+ data.tar.gz: e4a8b0b000d079df30bf627e2a111ce2a8636a62
5
5
  SHA512:
6
- metadata.gz: cd5724fc7df53c692f2bd78c33e55c61c7168067764c8ddf18e210a88c38d14bfd173bcba635656dbac702aee4c49c99403e0730293f94ade2e7beb55dc63f54
7
- data.tar.gz: 7eb76c3aa2a161f0374b333d41e570d9d191ac710406c044717f5773cb70ebec0116a1232a6c69b65ac26a7603af9d244d629f444aee05fc5024261a4d98a71e
6
+ metadata.gz: ffd874f95b6f362387125c2e41eb778a7f5246ffb5e5fff69edd260e37b10fe1feda42c6538f226b55f6f22cdcbef1fc7902f0c68dbc0da986990b23840523c1
7
+ data.tar.gz: 9b50992cba646e69ecb0a600f2c9972a8aa00f3b37a80a719a70e934fba344efdfcf6b857105c6a9fbc31bb19ceba4f6f1abe4484d65fccc7041ccc68e7a3d87
@@ -1,4 +1,4 @@
1
- == 2.0.0 /2015-03-09
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
@@ -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
- Dir.chdir(File.dirname(@config_file)) do
17
- @engine=Rutema::Engine.new(@configuration)
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
@@ -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)
@@ -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
@@ -3,7 +3,7 @@ module Rutema
3
3
  module Version
4
4
  MAJOR=2
5
5
  MINOR=0
6
- TINY="0.pre2"
6
+ TINY="0.pre3"
7
7
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
8
8
  end
9
9
  end
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.pre2
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-07-10 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: patir