minitest-distributed 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +16 -4
  3. data/Gemfile +1 -0
  4. data/docker-compose.yml +5 -0
  5. data/lib/minitest/distributed/configuration.rb +5 -0
  6. data/lib/minitest/distributed/reporters/test_order_reporter.rb +36 -0
  7. data/lib/minitest/distributed/test_selector.rb +11 -1
  8. data/lib/minitest/distributed/version.rb +1 -1
  9. data/lib/minitest/test_order_plugin.rb +21 -0
  10. data/minitest-distributed.gemspec +1 -1
  11. data/sorbet/config +1 -0
  12. data/sorbet/rbi/gems/ast.rbi +49 -0
  13. data/sorbet/rbi/gems/connection_pool.rbi +55 -0
  14. data/sorbet/rbi/gems/minitest-distributed.rbi +15 -0
  15. data/sorbet/rbi/gems/minitest.rbi +426 -0
  16. data/sorbet/rbi/gems/parallel.rbi +86 -0
  17. data/sorbet/rbi/gems/parser.rbi +1477 -0
  18. data/sorbet/rbi/gems/rainbow.rbi +122 -0
  19. data/sorbet/rbi/gems/rake.rbi +647 -0
  20. data/sorbet/rbi/gems/redis-client.rbi +311 -0
  21. data/sorbet/rbi/gems/redis.rbi +409 -0
  22. data/sorbet/rbi/gems/regexp_parser.rbi +984 -0
  23. data/sorbet/rbi/gems/rexml.rbi +599 -0
  24. data/sorbet/rbi/gems/rubocop-ast.rbi +1398 -0
  25. data/sorbet/rbi/gems/rubocop-minitest.rbi +406 -0
  26. data/sorbet/rbi/gems/rubocop-rake.rbi +85 -0
  27. data/sorbet/rbi/gems/rubocop-sorbet.rbi +218 -0
  28. data/sorbet/rbi/gems/rubocop.rbi +9351 -0
  29. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  30. data/sorbet/rbi/gems/toxiproxy.rbi +112 -0
  31. data/sorbet/rbi/gems/unicode-display_width.rbi +23 -0
  32. data/sorbet/rbi/minitest.rbi +5 -1
  33. data/sorbet/rbi/rails.rbi +1 -0
  34. data/sorbet/rbi/rbconfig.rbi +1 -1
  35. metadata +26 -5
  36. data/sorbet/rbi/redis.rbi +0 -106
@@ -0,0 +1,426 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/minitest/all/minitest.rbi
9
+ #
10
+ # minitest-5.17.0
11
+
12
+ module Minitest
13
+ def self.__run(reporter, options); end
14
+ def self.after_run(&block); end
15
+ def self.autorun; end
16
+ def self.backtrace_filter; end
17
+ def self.backtrace_filter=(arg0); end
18
+ def self.cattr_accessor(name); end
19
+ def self.clock_time; end
20
+ def self.extensions; end
21
+ def self.extensions=(arg0); end
22
+ def self.filter_backtrace(bt); end
23
+ def self.info_signal; end
24
+ def self.info_signal=(arg0); end
25
+ def self.init_plugins(options); end
26
+ def self.load_plugins; end
27
+ def self.parallel_executor; end
28
+ def self.parallel_executor=(arg0); end
29
+ def self.process_args(args = nil); end
30
+ def self.reporter; end
31
+ def self.reporter=(arg0); end
32
+ def self.run(args = nil); end
33
+ def self.run_one_method(klass, method_name); end
34
+ def self.seed; end
35
+ def self.seed=(arg0); end
36
+ end
37
+ module Minitest::Parallel
38
+ end
39
+ class Minitest::Parallel::Executor
40
+ def <<(work); end
41
+ def initialize(size); end
42
+ def shutdown; end
43
+ def size; end
44
+ def start; end
45
+ end
46
+ module Minitest::Parallel::Test
47
+ def _synchronize; end
48
+ end
49
+ module Minitest::Parallel::Test::ClassMethods
50
+ def run_one_method(klass, method_name, reporter); end
51
+ def test_order; end
52
+ end
53
+ module Minitest::Assertions
54
+ def _synchronize; end
55
+ def assert(test, msg = nil); end
56
+ def assert_empty(obj, msg = nil); end
57
+ def assert_equal(exp, act, msg = nil); end
58
+ def assert_in_delta(exp, act, delta = nil, msg = nil); end
59
+ def assert_in_epsilon(exp, act, epsilon = nil, msg = nil); end
60
+ def assert_includes(collection, obj, msg = nil); end
61
+ def assert_instance_of(cls, obj, msg = nil); end
62
+ def assert_kind_of(cls, obj, msg = nil); end
63
+ def assert_match(matcher, obj, msg = nil); end
64
+ def assert_mock(mock); end
65
+ def assert_nil(obj, msg = nil); end
66
+ def assert_operator(o1, op, o2 = nil, msg = nil); end
67
+ def assert_output(stdout = nil, stderr = nil); end
68
+ def assert_path_exists(path, msg = nil); end
69
+ def assert_predicate(o1, op, msg = nil); end
70
+ def assert_raises(*exp); end
71
+ def assert_respond_to(obj, meth, msg = nil); end
72
+ def assert_same(exp, act, msg = nil); end
73
+ def assert_send(send_ary, m = nil); end
74
+ def assert_silent; end
75
+ def assert_throws(sym, msg = nil); end
76
+ def capture_io; end
77
+ def capture_subprocess_io; end
78
+ def diff(exp, act); end
79
+ def exception_details(e, msg); end
80
+ def fail_after(y, m, d, msg); end
81
+ def flunk(msg = nil); end
82
+ def message(msg = nil, ending = nil, &default); end
83
+ def mu_pp(obj); end
84
+ def mu_pp_for_diff(obj); end
85
+ def pass(_msg = nil); end
86
+ def refute(test, msg = nil); end
87
+ def refute_empty(obj, msg = nil); end
88
+ def refute_equal(exp, act, msg = nil); end
89
+ def refute_in_delta(exp, act, delta = nil, msg = nil); end
90
+ def refute_in_epsilon(a, b, epsilon = nil, msg = nil); end
91
+ def refute_includes(collection, obj, msg = nil); end
92
+ def refute_instance_of(cls, obj, msg = nil); end
93
+ def refute_kind_of(cls, obj, msg = nil); end
94
+ def refute_match(matcher, obj, msg = nil); end
95
+ def refute_nil(obj, msg = nil); end
96
+ def refute_operator(o1, op, o2 = nil, msg = nil); end
97
+ def refute_path_exists(path, msg = nil); end
98
+ def refute_predicate(o1, op, msg = nil); end
99
+ def refute_respond_to(obj, meth, msg = nil); end
100
+ def refute_same(exp, act, msg = nil); end
101
+ def self.diff; end
102
+ def self.diff=(o); end
103
+ def skip(msg = nil, bt = nil); end
104
+ def skip_until(y, m, d, msg); end
105
+ def skipped?; end
106
+ def things_to_diff(exp, act); end
107
+ end
108
+ class Minitest::Unit
109
+ def self.after_tests(&b); end
110
+ def self.autorun; end
111
+ end
112
+ class Minitest::Unit::TestCase < Minitest::Test
113
+ def self.inherited(klass); end
114
+ end
115
+ class Minitest::Test < Minitest::Runnable
116
+ def capture_exceptions; end
117
+ def class_name; end
118
+ def neuter_exception(e); end
119
+ def new_exception(klass, msg, bt, kill = nil); end
120
+ def run; end
121
+ def sanitize_exception(e); end
122
+ def self.i_suck_and_my_tests_are_order_dependent!; end
123
+ def self.io_lock; end
124
+ def self.io_lock=(arg0); end
125
+ def self.make_my_diffs_pretty!; end
126
+ def self.parallelize_me!; end
127
+ def self.runnable_methods; end
128
+ def self.test_order; end
129
+ def with_info_handler(&block); end
130
+ extend Minitest::Guard
131
+ include Minitest::Assertions
132
+ include Minitest::Guard
133
+ include Minitest::Reportable
134
+ include Minitest::Test::LifecycleHooks
135
+ end
136
+ module Minitest::Test::LifecycleHooks
137
+ def after_setup; end
138
+ def after_teardown; end
139
+ def before_setup; end
140
+ def before_teardown; end
141
+ def setup; end
142
+ def teardown; end
143
+ end
144
+ class Minitest::Runnable
145
+ def assertions; end
146
+ def assertions=(arg0); end
147
+ def failure; end
148
+ def failures; end
149
+ def failures=(arg0); end
150
+ def initialize(name); end
151
+ def marshal_dump; end
152
+ def marshal_load(ary); end
153
+ def name; end
154
+ def name=(o); end
155
+ def passed?; end
156
+ def result_code; end
157
+ def run; end
158
+ def self.inherited(klass); end
159
+ def self.methods_matching(re); end
160
+ def self.on_signal(name, action); end
161
+ def self.reset; end
162
+ def self.run(reporter, options = nil); end
163
+ def self.run_one_method(klass, method_name, reporter); end
164
+ def self.runnable_methods; end
165
+ def self.runnables; end
166
+ def self.with_info_handler(reporter, &block); end
167
+ def skipped?; end
168
+ def time; end
169
+ def time=(arg0); end
170
+ def time_it; end
171
+ end
172
+ module Minitest::Reportable
173
+ def class_name; end
174
+ def error?; end
175
+ def location; end
176
+ def passed?; end
177
+ def result_code; end
178
+ def skipped?; end
179
+ end
180
+ class Minitest::Result < Minitest::Runnable
181
+ def class_name; end
182
+ def klass; end
183
+ def klass=(arg0); end
184
+ def self.from(runnable); end
185
+ def source_location; end
186
+ def source_location=(arg0); end
187
+ def to_s; end
188
+ include Minitest::Reportable
189
+ end
190
+ class Minitest::AbstractReporter
191
+ def lock; end
192
+ def locked?; end
193
+ def passed?; end
194
+ def prerecord(klass, name); end
195
+ def record(result); end
196
+ def report; end
197
+ def start; end
198
+ def synchronize(&block); end
199
+ def try_lock; end
200
+ def unlock; end
201
+ include Mutex_m
202
+ end
203
+ class Minitest::Reporter < Minitest::AbstractReporter
204
+ def initialize(io = nil, options = nil); end
205
+ def io; end
206
+ def io=(arg0); end
207
+ def options; end
208
+ def options=(arg0); end
209
+ end
210
+ class Minitest::ProgressReporter < Minitest::Reporter
211
+ def prerecord(klass, name); end
212
+ def record(result); end
213
+ end
214
+ class Minitest::StatisticsReporter < Minitest::Reporter
215
+ def assertions; end
216
+ def assertions=(arg0); end
217
+ def count; end
218
+ def count=(arg0); end
219
+ def errors; end
220
+ def errors=(arg0); end
221
+ def failures; end
222
+ def failures=(arg0); end
223
+ def initialize(io = nil, options = nil); end
224
+ def passed?; end
225
+ def record(result); end
226
+ def report; end
227
+ def results; end
228
+ def results=(arg0); end
229
+ def skips; end
230
+ def skips=(arg0); end
231
+ def start; end
232
+ def start_time; end
233
+ def start_time=(arg0); end
234
+ def total_time; end
235
+ def total_time=(arg0); end
236
+ end
237
+ class Minitest::SummaryReporter < Minitest::StatisticsReporter
238
+ def aggregated_results(io); end
239
+ def old_sync; end
240
+ def old_sync=(arg0); end
241
+ def report; end
242
+ def start; end
243
+ def statistics; end
244
+ def summary; end
245
+ def sync; end
246
+ def sync=(arg0); end
247
+ def to_s; end
248
+ end
249
+ class Minitest::CompositeReporter < Minitest::AbstractReporter
250
+ def <<(reporter); end
251
+ def initialize(*reporters); end
252
+ def io; end
253
+ def passed?; end
254
+ def prerecord(klass, name); end
255
+ def record(result); end
256
+ def report; end
257
+ def reporters; end
258
+ def reporters=(arg0); end
259
+ def start; end
260
+ end
261
+ class Minitest::Assertion < Exception
262
+ def error; end
263
+ def location; end
264
+ def result_code; end
265
+ def result_label; end
266
+ end
267
+ class Minitest::Skip < Minitest::Assertion
268
+ def result_label; end
269
+ end
270
+ class Minitest::UnexpectedError < Minitest::Assertion
271
+ def backtrace; end
272
+ def error; end
273
+ def error=(arg0); end
274
+ def initialize(error); end
275
+ def message; end
276
+ def result_label; end
277
+ end
278
+ module Minitest::Guard
279
+ def jruby?(platform = nil); end
280
+ def maglev?(platform = nil); end
281
+ def mri?(platform = nil); end
282
+ def osx?(platform = nil); end
283
+ def rubinius?(platform = nil); end
284
+ def windows?(platform = nil); end
285
+ end
286
+ class Minitest::BacktraceFilter
287
+ def filter(bt); end
288
+ end
289
+ class MockExpectationError < StandardError
290
+ end
291
+ class Minitest::Mock
292
+ def ===(*args, **kwargs, &b); end
293
+ def __call(name, data); end
294
+ def __respond_to?(*arg0); end
295
+ def class(*args, **kwargs, &b); end
296
+ def expect(name, retval, args = nil, **kwargs, &blk); end
297
+ def initialize(delegator = nil); end
298
+ def inspect(*args, **kwargs, &b); end
299
+ def instance_eval(*args, **kwargs, &b); end
300
+ def instance_variables(*args, **kwargs, &b); end
301
+ def method_missing(sym, *args, **kwargs, &block); end
302
+ def object_id(*args, **kwargs, &b); end
303
+ def public_send(*args, **kwargs, &b); end
304
+ def respond_to?(sym, include_private = nil); end
305
+ def respond_to_missing?(*args, **kwargs, &b); end
306
+ def send(*args, **kwargs, &b); end
307
+ def to_s(*args, **kwargs, &b); end
308
+ def verify; end
309
+ end
310
+ class Object < BasicObject
311
+ def stub(name, val_or_callable, *block_args, **block_kwargs, &block); end
312
+ include Minitest::Expectations
313
+ end
314
+ module Minitest::Expectations
315
+ def must_be(*args, **); end
316
+ def must_be_close_to(*args, **); end
317
+ def must_be_empty(*args, **); end
318
+ def must_be_instance_of(*args, **); end
319
+ def must_be_kind_of(*args, **); end
320
+ def must_be_nil(*args, **); end
321
+ def must_be_same_as(*args, **); end
322
+ def must_be_silent(*args, **); end
323
+ def must_be_within_delta(*args, **); end
324
+ def must_be_within_epsilon(*args, **); end
325
+ def must_equal(*args, **); end
326
+ def must_include(*args, **); end
327
+ def must_match(*args, **); end
328
+ def must_output(*args, **); end
329
+ def must_raise(*args, **); end
330
+ def must_respond_to(*args, **); end
331
+ def must_throw(*args, **); end
332
+ def path_must_exist(*args, **); end
333
+ def path_wont_exist(*args, **); end
334
+ def wont_be(*args, **); end
335
+ def wont_be_close_to(*args, **); end
336
+ def wont_be_empty(*args, **); end
337
+ def wont_be_instance_of(*args, **); end
338
+ def wont_be_kind_of(*args, **); end
339
+ def wont_be_nil(*args, **); end
340
+ def wont_be_same_as(*args, **); end
341
+ def wont_be_within_delta(*args, **); end
342
+ def wont_be_within_epsilon(*args, **); end
343
+ def wont_equal(*args, **); end
344
+ def wont_include(*args, **); end
345
+ def wont_match(*args, **); end
346
+ def wont_respond_to(*args, **); end
347
+ end
348
+ class Minitest::Expectation < Struct
349
+ def ctx; end
350
+ def ctx=(_); end
351
+ def must_be(*args, **); end
352
+ def must_be_close_to(*args, **); end
353
+ def must_be_empty(*args, **); end
354
+ def must_be_instance_of(*args, **); end
355
+ def must_be_kind_of(*args, **); end
356
+ def must_be_nil(*args, **); end
357
+ def must_be_same_as(*args, **); end
358
+ def must_be_silent(*args, **); end
359
+ def must_be_within_delta(*args, **); end
360
+ def must_be_within_epsilon(*args, **); end
361
+ def must_equal(*args, **); end
362
+ def must_include(*args, **); end
363
+ def must_match(*args, **); end
364
+ def must_output(*args, **); end
365
+ def must_raise(*args, **); end
366
+ def must_respond_to(*args, **); end
367
+ def must_throw(*args, **); end
368
+ def path_must_exist(*args, **); end
369
+ def path_wont_exist(*args, **); end
370
+ def self.[](*arg0); end
371
+ def self.inspect; end
372
+ def self.keyword_init?; end
373
+ def self.members; end
374
+ def self.new(*arg0); end
375
+ def target; end
376
+ def target=(_); end
377
+ def wont_be(*args, **); end
378
+ def wont_be_close_to(*args, **); end
379
+ def wont_be_empty(*args, **); end
380
+ def wont_be_instance_of(*args, **); end
381
+ def wont_be_kind_of(*args, **); end
382
+ def wont_be_nil(*args, **); end
383
+ def wont_be_same_as(*args, **); end
384
+ def wont_be_within_delta(*args, **); end
385
+ def wont_be_within_epsilon(*args, **); end
386
+ def wont_equal(*args, **); end
387
+ def wont_include(*args, **); end
388
+ def wont_match(*args, **); end
389
+ def wont_respond_to(*args, **); end
390
+ end
391
+ class Module
392
+ def infect_an_assertion(meth, new_name, dont_flip = nil); end
393
+ end
394
+ module Kernel
395
+ def describe(desc, *additional_desc, &block); end
396
+ end
397
+ class Minitest::Spec < Minitest::Test
398
+ def initialize(name); end
399
+ def self.current; end
400
+ extend Minitest::Spec::DSL
401
+ include Minitest::Spec::DSL::InstanceMethods
402
+ end
403
+ module Minitest::Spec::DSL
404
+ def after(_type = nil, &block); end
405
+ def before(_type = nil, &block); end
406
+ def children; end
407
+ def create(name, desc); end
408
+ def desc; end
409
+ def describe_stack; end
410
+ def it(desc = nil, &block); end
411
+ def let(name, &block); end
412
+ def name; end
413
+ def nuke_test_methods!; end
414
+ def register_spec_type(*args, &block); end
415
+ def self.extended(obj); end
416
+ def spec_type(desc, *additional); end
417
+ def specify(desc = nil, &block); end
418
+ def subject(&block); end
419
+ def to_s; end
420
+ end
421
+ module Minitest::Spec::DSL::InstanceMethods
422
+ def _(value = nil, &block); end
423
+ def before_setup; end
424
+ def expect(value = nil, &block); end
425
+ def value(value = nil, &block); end
426
+ end
@@ -0,0 +1,86 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parallel/all/parallel.rbi
9
+ #
10
+ # parallel-1.22.1
11
+
12
+ module Parallel
13
+ def self.add_progress_bar!(job_factory, options); end
14
+ def self.all?(*args, &block); end
15
+ def self.any?(*args, &block); end
16
+ def self.call_with_index(item, index, options, &block); end
17
+ def self.create_workers(job_factory, options, &block); end
18
+ def self.each(array, options = nil, &block); end
19
+ def self.each_with_index(array, options = nil, &block); end
20
+ def self.extract_count_from_options(options); end
21
+ def self.flat_map(*args, &block); end
22
+ def self.in_processes(options = nil, &block); end
23
+ def self.in_threads(options = nil); end
24
+ def self.instrument_finish(item, index, result, options); end
25
+ def self.instrument_start(item, index, options); end
26
+ def self.map(source, options = nil, &block); end
27
+ def self.map_with_index(array, options = nil, &block); end
28
+ def self.process_incoming_jobs(read, write, job_factory, options, &block); end
29
+ def self.replace_worker(job_factory, workers, index, options, blk); end
30
+ def self.with_instrumentation(item, index, options); end
31
+ def self.work_direct(job_factory, options, &block); end
32
+ def self.work_in_processes(job_factory, options, &blk); end
33
+ def self.work_in_ractors(job_factory, options); end
34
+ def self.work_in_threads(job_factory, options, &block); end
35
+ def self.worker(job_factory, options, &block); end
36
+ def self.worker_number; end
37
+ def self.worker_number=(worker_num); end
38
+ extend Parallel::ProcessorCount
39
+ end
40
+ module Parallel::ProcessorCount
41
+ def physical_processor_count; end
42
+ def processor_count; end
43
+ end
44
+ class Parallel::DeadWorker < StandardError
45
+ end
46
+ class Parallel::Break < StandardError
47
+ def initialize(value = nil); end
48
+ def value; end
49
+ end
50
+ class Parallel::Kill < Parallel::Break
51
+ end
52
+ class Parallel::UndumpableException < StandardError
53
+ def backtrace; end
54
+ def initialize(original); end
55
+ end
56
+ class Parallel::ExceptionWrapper
57
+ def exception; end
58
+ def initialize(exception); end
59
+ end
60
+ class Parallel::Worker
61
+ def close_pipes; end
62
+ def initialize(read, write, pid); end
63
+ def pid; end
64
+ def read; end
65
+ def stop; end
66
+ def thread; end
67
+ def thread=(arg0); end
68
+ def wait; end
69
+ def work(data); end
70
+ def write; end
71
+ end
72
+ class Parallel::JobFactory
73
+ def initialize(source, mutex); end
74
+ def next; end
75
+ def pack(item, index); end
76
+ def producer?; end
77
+ def queue_wrapper(array); end
78
+ def size; end
79
+ def unpack(data); end
80
+ end
81
+ class Parallel::UserInterruptHandler
82
+ def self.kill(thing); end
83
+ def self.kill_on_ctrl_c(pids, options); end
84
+ def self.restore_interrupt(old, signal); end
85
+ def self.trap_interrupt(signal); end
86
+ end