test_bench-bootstrap 7.0.2 → 7.0.3
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/upstream-lib/test_bench_bootstrap/test_bench/executable/parse_arguments.rb +10 -3
- data/upstream-lib/test_bench_bootstrap/test_bench/executable.rb +2 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception.rb +13 -0
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls.rb +3 -3
- data/upstream-lib/test_bench_bootstrap/test_bench/session/exception/format_backtrace.rb +6 -0
- 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: 7412ef4171fcd3ca6c2f107a6c142fc21b62c241645ca0d755036a561af990a6
|
4
|
+
data.tar.gz: d6c044ba850463a046b23efc9c9dd278fb8f1bbd80173de53e5c403d8c964bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e5c2167c135b3acf049106bcbef63b1ac711fea22999cc438bee449a2a73b6aca36254b4efa59b48a9b42842a1e35427cb9bcf58367ed0d6aba28c1204af961
|
7
|
+
data.tar.gz: 55d2693ad764722f7615e007bf95a3c136bb8f7da3a54cf9ed418a8928046df570cfc85d9f6a7384f5b8018512d21e9394ef21568d2871ba248b5e2340ac0f18
|
@@ -28,6 +28,12 @@ module TestBenchBootstrap
|
|
28
28
|
arguments ||= ::ARGV
|
29
29
|
env ||= ::ENV
|
30
30
|
|
31
|
+
options_env_var = env['TEST_BENCH_OPTIONS']
|
32
|
+
if not options_env_var.nil?
|
33
|
+
env_arguments = Shellwords.split(options_env_var)
|
34
|
+
arguments.unshift(*env_arguments)
|
35
|
+
end
|
36
|
+
|
31
37
|
instance = new(arguments)
|
32
38
|
|
33
39
|
instance.env = env
|
@@ -90,9 +96,9 @@ module TestBenchBootstrap
|
|
90
96
|
].compact.join(':')
|
91
97
|
|
92
98
|
when '-d', '--detail'
|
93
|
-
env['
|
99
|
+
env['TEST_BENCH_DETAIL'] = 'on'
|
94
100
|
when '-D', '--no-detail'
|
95
|
-
env['
|
101
|
+
env['TEST_BENCH_DETAIL'] = 'off'
|
96
102
|
|
97
103
|
when '--device'
|
98
104
|
device = require_next_argument(switch)
|
@@ -203,11 +209,12 @@ module TestBenchBootstrap
|
|
203
209
|
TEST_BENCH_STRICT See --strict
|
204
210
|
TEST_BENCH_RANDOM_SEED See --random-seed
|
205
211
|
TEST_BENCH_FILTER_BACKTRACE_PATTERN See --filter-backtrace
|
206
|
-
|
212
|
+
TEST_BENCH_DETAIL See --detail
|
207
213
|
TEST_BENCH_OUTPUT_DEVICE See --device
|
208
214
|
TEST_BENCH_OUTPUT_LEVEL See --output-level
|
209
215
|
TEST_BENCH_OUTPUT_STYLING See --output-styling
|
210
216
|
TEST_BENCH_DEFAULT_TEST_PATH Specifies default path
|
217
|
+
TEST_BENCH_OPTIONS Evaluated as command line arguments similar to RUBYOPT
|
211
218
|
|
212
219
|
TEXT
|
213
220
|
exit(true)
|
@@ -74,6 +74,19 @@ module TestBenchBootstrap
|
|
74
74
|
|
75
75
|
Example = self.example
|
76
76
|
end
|
77
|
+
|
78
|
+
module NoBacktraceLocation
|
79
|
+
def self.example
|
80
|
+
backtrace = Backtrace.example
|
81
|
+
|
82
|
+
raise SomeException, Exception.exception_message, backtrace
|
83
|
+
|
84
|
+
rescue SomeException => exception
|
85
|
+
return exception
|
86
|
+
else
|
87
|
+
abort "Unreachable"
|
88
|
+
end
|
89
|
+
end
|
77
90
|
end
|
78
91
|
end
|
79
92
|
end
|
@@ -15,13 +15,13 @@ require 'test_bench_bootstrap/test_bench/session/controls/path/apex_directory'
|
|
15
15
|
require 'test_bench_bootstrap/test_bench/session/controls/path/file'
|
16
16
|
require 'test_bench_bootstrap/test_bench/session/controls/path/file/create'
|
17
17
|
|
18
|
+
require 'test_bench_bootstrap/test_bench/session/controls/backtrace'
|
19
|
+
require 'test_bench_bootstrap/test_bench/session/controls/backtrace/location'
|
20
|
+
|
18
21
|
require 'test_bench_bootstrap/test_bench/session/controls/exception/raise'
|
19
22
|
require 'test_bench_bootstrap/test_bench/session/controls/exception'
|
20
23
|
require 'test_bench_bootstrap/test_bench/session/controls/exception/message'
|
21
24
|
|
22
|
-
require 'test_bench_bootstrap/test_bench/session/controls/backtrace'
|
23
|
-
require 'test_bench_bootstrap/test_bench/session/controls/backtrace/location'
|
24
|
-
|
25
25
|
require 'test_bench_bootstrap/test_bench/session/controls/text'
|
26
26
|
require 'test_bench_bootstrap/test_bench/session/controls/message'
|
27
27
|
require 'test_bench_bootstrap/test_bench/session/controls/title'
|