test_bench-run 2.1.0.2 → 2.1.2.0

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: dd25020bbd6d5fad214e39fa5c0d9828c5ec723c63cb6be33203e7448b6d31d4
4
- data.tar.gz: 16686bcaf8ca4074a5b24fd02609d36a7a43ec08c71646f31ff7ad85ed80f43d
3
+ metadata.gz: cfdc2bb9462121e6431eff5ca00fe78b6c61f86d48060784650fc1c62cb0bf4b
4
+ data.tar.gz: d364c6b9b90bafed401b65fced2486e1b533b7b17c8278799f2932fc0fde0a59
5
5
  SHA512:
6
- metadata.gz: 2156b6636a386a6a8a101c44ed8c1b393393a0569e8e40a206b1ea096cfa33bf1fc7a922fa2104d6ceea31bcf24a373a8f6cc7d62da576685162f6bae23fadf8
7
- data.tar.gz: 7fedfc204b5ceba903e596ba9c788c401c14e04cb8e75934276b7a7c7aa9485bc3b5fc9d20a9ee29c7701c701c93446cc51cc39319f6d0e76264c4214c4c0264
6
+ metadata.gz: 93559b959c83af44b91260551a01dd3baae9383bc06d7cdc0a9aedb77b3598ce481e79b94fc01d47a98542056a7d2b2ea4bf7b313fa25ce69b68f3635a808e8c
7
+ data.tar.gz: c42ed249604ece941681a91cb9c45fea0f32ec04d8f5a25ee8ba1b5011eb57fd655ecb5235bec508d9e0271255785e4f33d87053268876f2077d2b07b30cbea6
@@ -9,9 +9,20 @@ module TestBench
9
9
  end
10
10
  attr_writer :run_file
11
11
 
12
+ def session
13
+ @session ||= Session::Substitute.build
14
+ end
15
+ attr_writer :session
16
+
17
+ def configure
18
+ Session.configure(self)
19
+ end
20
+
12
21
  def execute(file)
13
22
  run_file.(file)
14
23
  rescue => exception
24
+ session.record_failure
25
+
15
26
  STDERR.write("#{exception.full_message}\n")
16
27
  end
17
28
  end
@@ -42,7 +42,7 @@ module TestBench
42
42
  result = file_finished.result
43
43
  file = file_finished.file
44
44
 
45
- finish_process(process_id, result, file)
45
+ finish(process_id, result, file)
46
46
  end
47
47
 
48
48
  handle FileCrashed do |file_crashed|
@@ -51,10 +51,16 @@ module TestBench
51
51
 
52
52
  result = false
53
53
 
54
- finish_process(process_id, result, file)
54
+ finish(process_id, result, file)
55
55
  end
56
56
 
57
- def finish_process(process_id, result, file)
57
+ handle Started do
58
+ end
59
+
60
+ handle Finished do
61
+ end
62
+
63
+ def finish(process_id, result, file)
58
64
  events = pended_events.delete(process_id)
59
65
 
60
66
  if only_failure && result
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.0.2
4
+ version: 2.1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd