test_bench-run 2.1.1.0 → 2.1.2.1

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
  SHA256:
3
- metadata.gz: 2c9bffcdc1de5bb7ea2ee4f51e0ce5d7366005ffe545b9a0581818eeb7200416
4
- data.tar.gz: adb091a78e28434e5d19a8385cf569f3fcf2f80cc2ab5c17f061bb4d6755cec2
3
+ metadata.gz: 489f5e255673a8466e547992f334ac13b6ddd4d273f26023c678f793079e45cc
4
+ data.tar.gz: 3c066b5a5619661565753509a595d916b3b27d6343e3cd710a393ee4c7d2fac7
5
5
  SHA512:
6
- metadata.gz: 00236c0e03ce239839e5d9a8e2c674233c11b76d5462d1f32ce1e7a1e3ed1772a6b72f277e4dd97768b6325924c52700fb919104bf975731f4211895f937699d
7
- data.tar.gz: ef5eb82f6c4f83961c5a2631b4647a5b90a4984b02dee9566166a1bfe2b81d87bcd127d6680e57c465e79a93fa73b0ebb14de7a30b3e8daae91fc654f486f1f1
6
+ metadata.gz: 3dd9ac0afd2551a9280bd1477a10d9ebbf5d8881a59132ae0552c141028a411422e18e34df196017520433e7151f5f6ecda21b4d147a9333698e1362a7e9c342
7
+ data.tar.gz: d5480fe6df516d78cfa66f39aab478da7d8d9d3fccc56d255d5a02c08880f40f56706f5fee76b050914321945a217f61f4031bf2fb2b9a596f20dc4d7c34aa4c
@@ -9,9 +9,23 @@ module TestBench
9
9
  end
10
10
  attr_writer :run_file
11
11
 
12
+ def session_store
13
+ @session_store ||= Session::Store.new
14
+ end
15
+ attr_writer :session_store
16
+
17
+ def configure
18
+ Session::Store.configure(self)
19
+ end
20
+
12
21
  def execute(file)
13
22
  run_file.(file)
23
+
14
24
  rescue => exception
25
+ session = session_store.fetch
26
+
27
+ session.record_failure
28
+
15
29
  STDERR.write("#{exception.full_message}\n")
16
30
  end
17
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-run
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.0
4
+ version: 2.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd