test_bench-session 3.0.0.0.pre.4 → 3.0.0.0.pre.6
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/lib/test_bench/session/session.rb +20 -19
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e65cd9a3f0b2d095a7434c2cb0943e152e08e4388e684f1e0861980618aefa44
|
4
|
+
data.tar.gz: 2aff239b26fed7ab1bd65a9e122d5d20113df72f0dbdafd0d589cb00d5582b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d0604043f76f0a683e2681247523516957a2f33ed8269854c93b5d881a97df83fa9a48182ed0569d427bbb3a58db1d80eb579e6b8a965f371f7318e84d384c
|
7
|
+
data.tar.gz: e6b9b69780523032373507ca96b140dde6df79cb1b893eeb907a89934252334d15909ef24c7f0d6e592610320f1990d5d95161c4463cab94a706402d818fd331
|
@@ -4,6 +4,9 @@ module TestBench
|
|
4
4
|
|
5
5
|
ExecutionBreak = Object.new
|
6
6
|
|
7
|
+
## Remove when no longer in use - Nathan, Tue Jul 15 2025
|
8
|
+
Abort = ExecutionBreak
|
9
|
+
|
7
10
|
def telemetry
|
8
11
|
@telemetry ||= Telemetry::Substitute.build
|
9
12
|
end
|
@@ -201,34 +204,32 @@ module TestBench
|
|
201
204
|
|
202
205
|
catch(ExecutionBreak) do
|
203
206
|
block.(self)
|
204
|
-
end
|
205
207
|
|
206
|
-
|
207
|
-
|
208
|
-
|
208
|
+
rescue Failure => failure
|
209
|
+
message = failure.message
|
210
|
+
record_event(Events::Failed.build(message))
|
209
211
|
|
210
|
-
|
211
|
-
|
212
|
+
rescue ::Exception => exception
|
213
|
+
aborted_recorded = status.error_sequence > previous_status.error_sequence
|
212
214
|
|
213
|
-
|
214
|
-
|
215
|
+
if not aborted_recorded
|
216
|
+
location = format_backtrace.(exception)
|
215
217
|
|
216
|
-
|
217
|
-
|
218
|
-
record_event(Events::Aborted.build(message, location))
|
219
|
-
end
|
218
|
+
message = exception.detailed_message
|
220
219
|
|
221
|
-
|
220
|
+
record_event(Events::Aborted.build(message, location))
|
221
|
+
end
|
222
222
|
|
223
|
-
|
224
|
-
result = status.result(previous_status, pending_event)
|
223
|
+
raise exception
|
225
224
|
|
226
|
-
|
227
|
-
|
225
|
+
ensure
|
226
|
+
result = status.result(previous_status, pending_event)
|
228
227
|
|
229
|
-
|
230
|
-
|
228
|
+
pending_event.result = result
|
229
|
+
record_event(pending_event)
|
231
230
|
end
|
231
|
+
|
232
|
+
result
|
232
233
|
end
|
233
234
|
end
|
234
235
|
end
|