test_bench-isolated 2.0.1.0 → 2.0.1.2

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: ce3c4616782689047188f14c495ac232b470d0e805bf455dcbbd2d8301ed8a0c
4
- data.tar.gz: 14355e880088815320512a68c7ad2f4baf7dc549c48d052012db82a1fe26733d
3
+ metadata.gz: 338f142e04c3aea35552452cc5b0a2cf499165c70831ad730f7ebba249e10c5b
4
+ data.tar.gz: d5e56d8d262b906622654522f9deb59dc163f6a694d318ebe098a5cb58e755fa
5
5
  SHA512:
6
- metadata.gz: 707d6e4274a07fbd65ea1abea6cff250d00e4c0a4eaef9c20617041d0af1d222d4692ac2877f09aea3609e2bb459d35cb06f1dd6771e22c553df52de9c797546
7
- data.tar.gz: 5f919785a59e8778abee82c1a33a1224d2ec7bff1671fd5049ea6df98c08bc898d1c89c89370248dd567a90505b074a34f83aa09a63e994d858579b7475b66f4
6
+ metadata.gz: 98165e7c104af49f5960bf8e755ebb7e014024e5b3e98c0a53cf2d31878b190027d7886d8fd2a26b87a88248a173fc35257f5d87cbeafc0f7207d68fa64be92c
7
+ data.tar.gz: 15932d57c5ec5b3d80cfdcdb63c0290c1ae26f493995b931110066cc3a784bd192ceb0c1f6da5b07bade26518b01c957c1ebfafb3cc064760d6bf8624d24ae94
@@ -171,14 +171,14 @@ module TestBenchIsolated
171
171
 
172
172
  env['TEST_BENCH_ONLY_FAILURE'] = only_failure_text
173
173
 
174
- when '-p', '-P', '--require-passing-tests', '--no-require-passing-tests'
174
+ when '-p', '-P', '--require-passing-test', '--no-require-passing-test'
175
175
  if not negated?(switch)
176
176
  require_passing_tests = 'on'
177
177
  else
178
178
  require_passing_tests = 'off'
179
179
  end
180
180
 
181
- env['TEST_BENCH_REQUIRE_PASSING_TESTS'] = require_passing_tests
181
+ env['TEST_BENCH_REQUIRE_PASSING_TEST'] = require_passing_tests
182
182
 
183
183
  when '-o', '--output-styling'
184
184
  output_styling_text = switch_value(argument_index) do
@@ -0,0 +1,7 @@
1
+ module TestBenchIsolated
2
+ module TestBench
3
+ module Controls
4
+ TelemetrySink = TestBench::Telemetry::Controls::Sink
5
+ end
6
+ end
7
+ end
@@ -1,6 +1,9 @@
1
1
  require 'test_bench_isolated/test_bench/random/controls'
2
+ require 'test_bench_isolated/test_bench/telemetry/controls'
2
3
  require 'test_bench_isolated/test_bench/run/controls'
3
4
 
5
+ require 'test_bench_isolated/test_bench/controls/telemetry_sink'
6
+
4
7
  require 'test_bench_isolated/test_bench/controls/result'
5
8
 
6
9
  require 'test_bench_isolated/test_bench/controls/path'
@@ -19,10 +19,12 @@ module TestBenchIsolated
19
19
  :faint => '2',
20
20
  :italic => '3',
21
21
  :underline => '4',
22
+ :reverse_video => '7',
22
23
 
23
24
  :reset_intensity => '22',
24
25
  :reset_italic => '23',
25
26
  :reset_underline => '24',
27
+ :reset_reverse_video => '27',
26
28
 
27
29
  :black => '30',
28
30
  :red => '31',
@@ -0,0 +1,9 @@
1
+ module TestBenchIsolated
2
+ module TestBench
3
+ class Session
4
+ module Controls
5
+ TelemetrySink = Telemetry::Controls::Sink
6
+ end
7
+ end
8
+ end
9
+ end
@@ -28,6 +28,8 @@ require 'test_bench_isolated/test_bench/session/controls/events/fixture_started'
28
28
  require 'test_bench_isolated/test_bench/session/controls/events/fixture_finished'
29
29
  require 'test_bench_isolated/test_bench/session/controls/events'
30
30
 
31
+ require 'test_bench_isolated/test_bench/session/controls/telemetry_sink'
32
+
31
33
  require 'test_bench_isolated/test_bench/session/controls/substitute/path'
32
34
 
33
35
  require 'test_bench_isolated/test_bench/session/controls/event'
@@ -207,6 +207,10 @@ module TestBenchIsolated
207
207
  compare_sequence != assertion_sequence
208
208
  end
209
209
 
210
+ def register_telemetry_sink(telemetry_sink)
211
+ telemetry.register(telemetry_sink)
212
+ end
213
+
210
214
  def record_assertion
211
215
  self.assertion_sequence += 1
212
216
  end
@@ -35,6 +35,10 @@ module TestBenchIsolated
35
35
  session&.telemetry
36
36
  end
37
37
 
38
+ def self.register_telemetry_sink(telemetry_sink)
39
+ session&.register_telemetry_sink(telemetry_sink)
40
+ end
41
+
38
42
  module DeactivatedVariants
39
43
  def _context(title=nil, &)
40
44
  context(title)
File without changes
metadata CHANGED
@@ -1,23 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-isolated
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.0
4
+ version: 2.0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: script
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nathanladd+github@gmail.com
15
15
  executables:
16
- - bench
16
+ - bench-isolated
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/test_bench/isolated.rb
21
20
  - lib/test_bench_isolated/test_bench.rb
22
21
  - lib/test_bench_isolated/test_bench/cli.rb
23
22
  - lib/test_bench_isolated/test_bench/controls.rb
@@ -26,6 +25,7 @@ files:
26
25
  - lib/test_bench_isolated/test_bench/controls/random.rb
27
26
  - lib/test_bench_isolated/test_bench/controls/result.rb
28
27
  - lib/test_bench_isolated/test_bench/controls/stdin.rb
28
+ - lib/test_bench_isolated/test_bench/controls/telemetry_sink.rb
29
29
  - lib/test_bench_isolated/test_bench/fixture.rb
30
30
  - lib/test_bench_isolated/test_bench/fixture/actuate/class.rb
31
31
  - lib/test_bench_isolated/test_bench/fixture/actuate/object.rb
@@ -123,6 +123,7 @@ files:
123
123
  - lib/test_bench_isolated/test_bench/session/controls/random.rb
124
124
  - lib/test_bench_isolated/test_bench/session/controls/result.rb
125
125
  - lib/test_bench_isolated/test_bench/session/controls/substitute/path.rb
126
+ - lib/test_bench_isolated/test_bench/session/controls/telemetry_sink.rb
126
127
  - lib/test_bench_isolated/test_bench/session/controls/time.rb
127
128
  - lib/test_bench_isolated/test_bench/session/controls/title.rb
128
129
  - lib/test_bench_isolated/test_bench/session/events.rb
@@ -166,7 +167,7 @@ files:
166
167
  - lib/test_bench_isolated/test_bench/telemetry/substitute/sink.rb
167
168
  - lib/test_bench_isolated/test_bench/telemetry/telemetry.rb
168
169
  - lib/test_bench_isolated/test_bench/test_bench.rb
169
- - script/bench
170
+ - script/bench-isolated
170
171
  homepage: https://github.com/test-bench/test-bench-isolated
171
172
  licenses:
172
173
  - MIT
@@ -186,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
187
  - !ruby/object:Gem::Version
187
188
  version: '0'
188
189
  requirements: []
189
- rubygems_version: 3.4.10
190
+ rubygems_version: 3.5.9
190
191
  signing_key:
191
192
  specification_version: 4
192
193
  summary: Isolated copy of TestBench for testing TestBench
@@ -1 +0,0 @@
1
- require 'test_bench_isolated/test_bench'