minitest 5.11.3 → 5.25.4

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: 2c82c1408c60d4743cf06566256146090f22ab11bc5f024cbf4026fd967d7eb6
4
- data.tar.gz: 93e140e22554c00911e381fa0584c52add681e5adb34bc3e575ee79459d7df6e
3
+ metadata.gz: 7ea765a693b5e0ff21498e24a2880144f5e407283d225a6052dde11fbe6165a5
4
+ data.tar.gz: 73f500c0dd7bbd0cbedcfa7c68d72da8f089f9397cd17d4a03e8f5bad0b40537
5
5
  SHA512:
6
- metadata.gz: 3621855d2763f225b2b99061c9eed994040debd9b1b032ebb3318adc42413493458b5c47569b7305954fc7575e870ad97441ce8bec7ddadb92afdd126f1f4bda
7
- data.tar.gz: 19e04c6feff4f3d0cda89fadf4bd3f28415301d8adb2e5650a064cb74df57d8ee9885175738ac967d7a839496ac1c0f1c690627e8a2ca83f71edd6b0edb5b811
6
+ metadata.gz: 1028ca9777f3dc15155dbe813565e886df7c6d1b69d3074fdae470784c4bd8f96ee49602d2ea048832a71647b84b2d42ab9dcba0c2d948b8ec1cfb40c0e304b3
7
+ data.tar.gz: 05fb281d6ba736c47ade5c871472ab339ef8a7f14d68c88f9fbb7190d3f2e9c7d387f571e6d45fa9d25076b0794e6eb16cc993b79637b67e55996954e51678d8
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,375 @@
1
+ === 5.25.4 / 2024-12-03
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fix for must_verify definition if only requiring minitest/mock (but why?).
6
+
7
+ === 5.25.3 / 2024-12-03
8
+
9
+ * 5 bug fixes:
10
+
11
+ * Fixed assert_mock to fail instead of raise on unmet mock expectations.
12
+ * Fixed assert_mock to take an optional message argument.
13
+ * Fixed formatting of unmet mock expectation messages.
14
+ * Fixed missing must_verify expectation to match assert_mock.
15
+ * minitest/pride: Fixed to use true colors with *-direct terminals (bk2204)
16
+
17
+ === 5.25.2 / 2024-11-21
18
+
19
+ * 4 bug fixes:
20
+
21
+ * Include class name in spec name. (thomasmarshall)
22
+ * Fixed 'redefining object_id' warning from ruby 3.4. (mattbrictson)
23
+ * Minitest top-level namespace no longer includes entire contents of README.rdoc. Too much!
24
+ * Refactored spec's describe to more cleanly determine the superclass and name
25
+
26
+ === 5.25.1 / 2024-08-16
27
+
28
+ * 2 bug fixes:
29
+
30
+ * Fix incompatibility caused by minitest-hooks & rails invading minitest internals.
31
+ * Revert change from =~ to match? to allow for nil if $TERM undefined.
32
+
33
+ === 5.25.0 / 2024-08-13
34
+
35
+ * 2 minor enhancements:
36
+
37
+ * Fixed some inefficiencies filtering and matching (mostly backtraces).
38
+ * Refactored siginfo handler to reduce runtime costs. Saved ~30%!
39
+
40
+ * 5 bug fixes:
41
+
42
+ * Added missing rdoc to get back to 100% coverage.
43
+ * Cleaning up ancient code checking for defined?(Encoding) and the like.
44
+ * Disambiguated some shadowed variables in minitest/compress.
45
+ * Fixed an ironic bug if using string-literals AND Werror.
46
+ * Improve description of test:slow task. (stomar)
47
+
48
+ === 5.24.1 / 2024-06-29
49
+
50
+ * 1 bug fix:
51
+
52
+ * Fix the error message when an extension is invalid value. (y-yagi)
53
+
54
+ === 5.24.0 / 2024-06-18
55
+
56
+ * 2 minor enhancements:
57
+
58
+ * Added Minitest.register_plugin.
59
+ * Extended plugin system to work with modules/classes for opt-out plugins.
60
+
61
+ * 1 bug fix:
62
+
63
+ * Removed anacronism, but allow load_plugins to exit gracefully if --disable=gems.
64
+
65
+ === 5.23.1 / 2024-05-21
66
+
67
+ * 1 bug fix:
68
+
69
+ * Fully qualify the Queue class to avoid conflicts with other libraries. (rafaelfranca)
70
+
71
+ === 5.23.0 / 2024-05-15
72
+
73
+ * 3 minor enhancements:
74
+
75
+ * Added -Werror to raise on any warning output. (byroot)
76
+ * Added UnexpectedWarning as a failure summary type, added count to output if activated.
77
+ * Added minitest/manual_plugins.rb w/ new Minitest.load method. (tenderlove)
78
+
79
+ * 2 bug fixes:
80
+
81
+ * Allow empty_run! and reporter to display summary for empty runs. (zzak)
82
+ * Make test task verbose using either rake's -v or -t (was just -t).
83
+
84
+ === 5.22.3 / 2024-03-13
85
+
86
+ * 1 minor enhancement:
87
+
88
+ * MASSIVE improvement of minitest's pride plugin output: Frequencies doubled! Sine waves shifted!! Comments improved!!! Colors rotated!!!! (havenwood)
89
+
90
+ * 3 bug fixes:
91
+
92
+ * Improved wording on Minitest::Test#parallelize_me! to clarify it goes INSIDE your test class/describe.
93
+ * Minor changes to tests to pass when tests ran with extra flags (eg -p).
94
+ * Support Ruby 3.4's new error message format. (mame)
95
+
96
+ === 5.22.2 / 2024-02-07
97
+
98
+ * 1 bug fix:
99
+
100
+ * Third time's a charm? Remember: 'ensure' is almost always the
101
+ wrong way to go (for results... it's great for cleaning up).
102
+
103
+ === 5.22.1 / 2024-02-06
104
+
105
+ * 1 bug fix:
106
+
107
+ * Don't exit non-zero if no tests ran and no filter (aka, the test file is empty).
108
+ (I'm starting to think the exit 1 thing for @tenderlove was a mistake...)
109
+
110
+ === 5.22.0 / 2024-02-05
111
+
112
+ * 1 minor enhancement:
113
+
114
+ * Added "did you mean" output if your --name filter matches nothing. (tenderlove)
115
+
116
+ * 2 bug fixes:
117
+
118
+ * Big cleanup of test filtering. Much prettier / more functional.
119
+ * Fix situation where Assertion#location can't find the location. (pftg)
120
+
121
+ === 5.21.2 / 2024-01-17
122
+
123
+ * 1 bug fix:
124
+
125
+ * Fixed bug in Minitest::Compress#compress formatting w/ nested patterns. Now recurses properly.
126
+
127
+ === 5.21.1 / 2024-01-11
128
+
129
+ * 1 bug fix:
130
+
131
+ * Rails' default backtrace filter can't currently work with caller_locations, so reverting back to caller.
132
+
133
+ === 5.21.0 / 2024-01-11
134
+
135
+ * 10 minor enhancements:
136
+
137
+ * Add include_all kw arg to assert_respond_to and refute_respond_to.
138
+ * Added --quiet flag to skip ProgressReporter (prints the dots). Minor speedup.
139
+ * Added Minitest::Compress#compress and added it to UnexpectedError.
140
+ * Added ability to initialize BacktraceFilter w/ custom regexp.
141
+ * Filter failure backtraces using backtrace_filter before calculating location. (thomasmarshall)
142
+ * Make BacktraceFilter#filter compatible with locations (still compares strings).
143
+ * Optimized Assertion#location ~30%.
144
+ * Output relative paths for all failures/errors/backtraces.
145
+ * Refactored location information in assertions, now using locations.
146
+ * Removed thread and mutex_m dependencies. (hsbt, eregon)
147
+
148
+ * 2 bug fixes:
149
+
150
+ * Drop undocumented bt arg in #skip. Dunno why that ever happened, prolly for testing?
151
+ * Fix mock to work with ruby debugger enabled. (keithlayne)
152
+
153
+ === 5.20.0 / 2023-09-06
154
+
155
+ * 1 minor enhancement:
156
+
157
+ * Optionally allow autorun exit hook to remain active in forked child. (casperisfine)
158
+
159
+ === 5.19.0 / 2023-07-26
160
+
161
+ * 2 minor enhancements:
162
+
163
+ * Add metadata lazy accessor to Runnable / Result. (matteeyah)
164
+ * Only load minitest/unit (aka ancient MiniTest compatibility layer) if \ENV[\"MT_COMPAT\"]
165
+
166
+ * 1 bug fix:
167
+
168
+ * Minitest::TestTask enthusiastically added itself to default. (ParadoxV5)
169
+
170
+ === 5.18.1 / 2023-06-16
171
+
172
+ * 3 bug fixes:
173
+
174
+ * Avoid extra string allocations when filtering tests. (tenderlove)
175
+ * Only mention deprecated \ENV[\'N\'] if it is an integer string.
176
+ * Push up test_order to Minitest::Runnable to fix minitest/hell. (koic)
177
+
178
+ === 5.18.0 / 2023-03-04
179
+
180
+ * 2 major enhancements:
181
+
182
+ * Added assert_pattern & refute_pattern for pattern matching. (flavorjones)
183
+ * Added matching must_pattern_match & wont_pattern_match to minitest/spec.
184
+
185
+ * 1 bug fix:
186
+
187
+ * Support the new message format of NameError in Ruby 3.3 (mame)
188
+
189
+ === 5.17.0 / 2022-12-31
190
+
191
+ * 1 minor enhancement:
192
+
193
+ * Refactor setup hooks into a SETUP_METHODS constant. (MSP-Greg)
194
+
195
+ * 3 bug fixes:
196
+
197
+ * Fix kwargs for Mock calls to delegator. (blowmage)
198
+ * Fix kwargs for expectations. (bobmazanec, blowmage)
199
+ * Remove check for .b method. (tenderlove)
200
+
201
+ === 5.16.3 / 2022-08-17
202
+
203
+ * 2 bug fixes:
204
+
205
+ * Fixed exception sanitization by removing TypeError restriction on rescue.
206
+ * Use A instead of deprecated TESTOPTS in rake test:slow. (davidstosik)
207
+
208
+ === 5.16.2 / 2022-07-03
209
+
210
+ * 4 bug fixes:
211
+
212
+ * Added MT_KWARGS_HACK kludge for stub to deal with ruby 2.7 kwargs nastiness. (tsugimoto)
213
+ * In #expect, pop Hash class from args if $MT_KWARGS_HACK. (casperisfine)
214
+ * In above scenario, set expected kwargs (as Objects) based on actual kwargs.
215
+ * Nuke ivars if exception fails to marshal twice (eg better_errors). (irphilli)
216
+
217
+ === 5.16.1 / 2022-06-20
218
+
219
+ * 2 bug fixes:
220
+
221
+ * Apparently adding real kwarg support to mocks/stubs broke some code. Fixed.
222
+ * Use `MT_KWARGS_HACK=1` to activate the kludgy kwargs support w/ caveats.
223
+ * Clarified some doco wrt the block on #stub.
224
+
225
+ === 5.16.0 / 2022-06-14
226
+
227
+ * 2 major enhancements:
228
+
229
+ * Added Minitest::TestTask.
230
+ * Dropping ruby 2.2 - 2.5. 2.6 is DTM soon too.
231
+
232
+ * 11 minor enhancements:
233
+
234
+ * Added --show-skips option to show skips at end of run but not require --verbose. (MSP-Greg)
235
+ * Added Minitest.seed, the random seed used by the run.
236
+ * Calling `srand Minitest.seed` before all shuffles to ensure determinism.
237
+ * Extended #stub to handle kwargs for both block and call args. (SampsonCrowley)
238
+ * Extended Mock#__call to display kwargs.
239
+ * Extended Mock#expect to record kwargs.
240
+ * Extended Mock#method_missing to take kwargs & compare them against expected.
241
+ * Mock#method_missing displays better errors on arity mismatch.
242
+ * Removed minor optimization removing empty suites before run.
243
+ * Simplified test randomization (test order will change even with fixed seed).
244
+ * assert_match now returns the MatchData on success. (Nakilon)
245
+
246
+ * 3 bug fixes:
247
+
248
+ * (Re)Fixed marshalling of exceptions, neutering them in 2 passes.
249
+ * Fixed more problems with rdoc.
250
+ * Had to patch up mock and stub to deal with <=2.7 kwargs oddities
251
+
252
+ === 5.15.0 / 2021-12-14
253
+
254
+ * 1 major enhancement:
255
+
256
+ * assert_throws returns the value returned, if any. (volmer)
257
+
258
+ * 3 minor enhancements:
259
+
260
+ * Added -S <CODES> option to skip reporting of certain types of output
261
+ * Enable Ruby deprecation warnings by default. (casperisfine)
262
+ * Use Etc.nprocessors by default in order to maximize cpu usage. (tonytonyjan)
263
+
264
+ * 6 bug fixes:
265
+
266
+ * Close then unlink tempfiles on Windows. (nobu)
267
+ * Fixed #skip_until for windows paths. (MSP-Greg)
268
+ * Fixed a bunch of tests for jruby and windows. (MSP-Greg)
269
+ * Fixed marshalling of specs if they error. (tenderlove, jeremyevans, et al)
270
+ * Updated deprecation message for block expectations. (blowmage)
271
+ * Use Kernel.warn directly in expectations in case CUT defines their own warn. (firien)
272
+
273
+ === 5.14.4 / 2021-02-23
274
+
275
+ * 1 bug fix:
276
+
277
+ * Fixed deprecation warning using stub with methods using keyword arguments. (Nakilon)
278
+
279
+ === 5.14.3 / 2021-01-05
280
+
281
+ * 1 bug fix:
282
+
283
+ * Bumped require_ruby_version to < 4 (trunk = 3.1).
284
+
285
+ === 5.14.2 / 2020-08-31
286
+
287
+ * 1 bug fix:
288
+
289
+ * Bumped ruby version to include 3.0 (trunk).
290
+
291
+ === 5.14.1 / 2020-05-15
292
+
293
+ * 3 minor enhancements:
294
+
295
+ * Minitest.filter_backtrace returns original backtrace if filter comes back empty.
296
+ * Minitest::BacktraceFilter now returns entire backtrace if $MT_DEBUG set in env.
297
+ * Return true on a successful refute. (jusleg)
298
+
299
+ * 1 bug fix:
300
+
301
+ * Fixed expectation doco to not use global expectations.
302
+
303
+ === 5.14.0 / 2020-01-11
304
+
305
+ * 2 minor enhancements:
306
+
307
+ * Block-assertions (eg assert_output) now error if raised inside the block. (casperisfine)
308
+ * Changed assert_raises to only catch Assertion since that covers Skip and friends.
309
+
310
+ * 3 bug fixes:
311
+
312
+ * Added example for value wrapper with block to Expectations module. (stomar)
313
+ * Fixed use of must/wont_be_within_delta on Expectation instance. (stomar)
314
+ * Renamed UnexpectedError#exception to #error to avoid problems with reraising. (casperisfine)
315
+
316
+ === 5.13.0 / 2019-10-29
317
+
318
+ * 9 minor enhancements:
319
+
320
+ * Added Minitest::Guard#osx?
321
+ * Added examples to documentation for assert_raises. (lxxxvi)
322
+ * Added expectations #path_must_exist and #path_wont_exist. Not thrilled with the names.
323
+ * Added fail_after(year, month, day, msg) to allow time-bombing after a deadline.
324
+ * Added skip_until(year, month, day, msg) to allow deferring until a deadline.
325
+ * Deprecated Minitest::Guard#maglev?
326
+ * Deprecated Minitest::Guard#rubinius?
327
+ * Finally added assert_path_exists and refute_path_exists. (deivid-rodriguez)
328
+ * Refactored and pulled Assertions#things_to_diff out of #diff. (BurdetteLamar)
329
+
330
+ * 3 bug fixes:
331
+
332
+ * Fix autorun bug that affects fork exit status in tests. (dylanahsmith/jhawthorn)
333
+ * Improved documentation for _/value/expect, especially for blocks. (svoop)
334
+ * Support new Proc#to_s format. (ko1)
335
+
336
+ === 5.12.2 / 2019-09-28
337
+
338
+ * 1 bug fix:
339
+
340
+ * After chatting w/ @y-yagi and others, decided to lower support to include ruby 2.2.
341
+
342
+ === 5.12.1 / 2019-09-28
343
+
344
+ * 1 minor enhancement:
345
+
346
+ * Added documentation for Reporter classes. (sshaw)
347
+
348
+ * 3 bug fixes:
349
+
350
+ * Avoid using 'match?' to support older ruby versions. (y-yagi)
351
+ * Fixed broken link to reference on goodness-of-fit testing. (havenwood)
352
+ * Update requirements in readme and Rakefile/hoe spec.
353
+
354
+ === 5.12.0 / 2019-09-22
355
+
356
+ * 8 minor enhancements:
357
+
358
+ * Added a descriptive error if assert_output or assert_raises called without a block. (okuramasafumi)
359
+ * Changed mu_pp_for_diff to make having both \n and \\n easier to debug.
360
+ * Deprecated $N for specifying number of parallel test runners. Use MT_CPU.
361
+ * Deprecated use of global expectations. To be removed from MT6.
362
+ * Extended Assertions#mu_pp to encoding validity output for strings to improve diffs.
363
+ * Extended Assertions#mu_pp to output encoding and validity if invalid to improve diffs.
364
+ * Extended Assertions#mu_pp_for_diff to make escaped newlines more obvious in diffs.
365
+ * Fail gracefully when expectation used outside of `it`.
366
+
367
+ * 3 bug fixes:
368
+
369
+ * Check \option[:filter] klass before match. Fixes 2.6 warning. (y-yagi)
370
+ * Fixed Assertions#diff from recalculating if set to nil
371
+ * Fixed spec section of readme to not use deprecated global expectations. (CheezItMan)
372
+
1
373
  === 5.11.3 / 2018-01-26
2
374
 
3
375
  * 1 bug fix:
@@ -123,7 +495,7 @@
123
495
  * 2 bug fixes:
124
496
 
125
497
  * Re-release to refresh gem certificate signing. ugh.
126
- * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
498
+ * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
127
499
 
128
500
  === 5.9.0 / 2016-05-16
129
501
 
@@ -147,7 +519,7 @@
147
519
  * 2 bug fixes:
148
520
 
149
521
  * Re-release to refresh gem certificate signing. ugh.
150
- * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
522
+ * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
151
523
 
152
524
  === 5.8.4 / 2016-01-21
153
525
 
@@ -461,7 +833,7 @@ Minitest 5:
461
833
  * Added Minitest::Benchmark.
462
834
  * Your benchmarks need to move to their own subclass.
463
835
  * Benchmarks using the spec DSL have to have "Bench" somewhere in their describe.
464
- * MiniTest::Unit.after_tests moved to Minitest.after_tests
836
+ * MiniTest::Unit.after_tests moved to Minitest.after_run
465
837
  * MiniTest::Unit.autorun is now Minitest.autorun. Just require minitest/autorun pls.
466
838
  * Removed ParallelEach#grep since it isn't used anywhere.
467
839
  * Renamed Runnable#__name__ to Runnable#name (but uses @NAME internally).
@@ -1307,4 +1679,3 @@ back.
1307
1679
  * 1 major enhancement
1308
1680
 
1309
1681
  * Birthday!
1310
-
data/Manifest.txt CHANGED
@@ -9,18 +9,24 @@ lib/minitest.rb
9
9
  lib/minitest/assertions.rb
10
10
  lib/minitest/autorun.rb
11
11
  lib/minitest/benchmark.rb
12
+ lib/minitest/compress.rb
13
+ lib/minitest/error_on_warning.rb
12
14
  lib/minitest/expectations.rb
13
15
  lib/minitest/hell.rb
16
+ lib/minitest/manual_plugins.rb
14
17
  lib/minitest/mock.rb
15
18
  lib/minitest/parallel.rb
16
19
  lib/minitest/pride.rb
17
20
  lib/minitest/pride_plugin.rb
18
21
  lib/minitest/spec.rb
19
22
  lib/minitest/test.rb
23
+ lib/minitest/test_task.rb
20
24
  lib/minitest/unit.rb
21
25
  test/minitest/metametameta.rb
26
+ test/minitest/test_minitest_assertions.rb
22
27
  test/minitest/test_minitest_benchmark.rb
23
28
  test/minitest/test_minitest_mock.rb
24
29
  test/minitest/test_minitest_reporter.rb
25
30
  test/minitest/test_minitest_spec.rb
26
31
  test/minitest/test_minitest_test.rb
32
+ test/minitest/test_minitest_test_task.rb