minitest 5.11.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0d02b78e719c5f0e0d66c70ce7d14dec24cd6b9238927d8aa4c7140ef0a9c73f
4
+ data.tar.gz: 558f87be0d0a767424bfaaef04bcebfa889ea946e46ab5e1ca0857a3016df2a3
5
+ SHA512:
6
+ metadata.gz: d5f6dace06643179027dad2514c33d546a00b18525237ea296570b5e575ff5144c39fef97f02dabba4ca778d0181d7e16718ca9aba58d33c6b2a489105a62263
7
+ data.tar.gz: bfbbbbb1d3e72976e0a162524e0026b4342a4e3395a601f1931384b511f85885e9d148cc3c855db98df01f9477ab5808495e942b9ab5e11d8b7b1ccc091389db
Binary file
Binary file
@@ -0,0 +1,34 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+ require 'autotest/rcov' if ENV['RCOV']
5
+
6
+ Autotest.add_hook :initialize do |at|
7
+ at.testlib = 'minitest/autorun'
8
+
9
+ bench_tests = %w(TestMinitestBenchmark)
10
+ mock_tests = %w(TestMinitestMock TestMinitestStub)
11
+ spec_tests = %w(TestMinitestReporter TestMetaStatic TestMeta
12
+ TestSpecInTestCase)
13
+ unit_tests = %w(TestMinitestGuard TestMinitestRunnable
14
+ TestMinitestRunner TestMinitestTest TestMinitestUnit
15
+ TestMinitestUnitInherited TestMinitestUnitOrder
16
+ TestMinitestUnitRecording TestMinitestUnitTestCase)
17
+
18
+ {
19
+ bench_tests => "test/minitest/test_minitest_benchmark.rb",
20
+ mock_tests => "test/minitest/test_minitest_mock.rb",
21
+ spec_tests => "test/minitest/test_minitest_reporter.rb",
22
+ unit_tests => "test/minitest/test_minitest_unit.rb",
23
+ }.each do |klasses, file|
24
+ klasses.each do |klass|
25
+ at.extra_class_map[klass] = file
26
+ end
27
+ end
28
+
29
+ at.add_exception 'coverage.info'
30
+ at.add_exception 'coverage'
31
+ end
32
+
33
+ # require 'autotest/rcov'
34
+ # Autotest::RCov.command = 'rcov_info'
@@ -0,0 +1,1304 @@
1
+ === 5.11.2 / 2018-01-25
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Reversed Test < Result. Back to < Runnable and using Reportable for shared code.
6
+
7
+ * 2 bug fixes:
8
+
9
+ * Fixed Result#location for instances of Test. (alexisbernard)
10
+ * Fixed deprecation message for Runnable#marshal_dump. (y-yagi)
11
+
12
+ === 5.11.1 / 2018-01-02
13
+
14
+ * 1 bug fix:
15
+
16
+ * Fixed Result (a superclass of Test) overriding Runnable's name accessors. (y-yagi, MSP-Greg)
17
+
18
+ === 5.11.0 / 2018-01-01
19
+
20
+ * 2 major enhancements:
21
+
22
+ * Added Minitest::Result and Minitest::Result.from(runnable).
23
+ * Changed Minitest::Test to subclass Result and refactored methods up.
24
+
25
+ * 7 minor enhancements:
26
+
27
+ * Added --no-plugins and MT_NO_PLUGINS to bypass MT plugin autoloading. Helps with bad actors installed globally.
28
+ * Added bench_performance_{logarithmic,power} for spec-style benchmarks. (rickhull)
29
+ * Added deprecation warning for Runnable#marshal_dump.
30
+ * Minitest.run_one_method now checks for instance of Result, not exact same class.
31
+ * Minitest::Test.run returns a Result version of self, not self.
32
+ * ProgressReporter#prerecord now explicitly prints klass.name. Allows for fakers.
33
+
34
+ * 4 bug fixes:
35
+
36
+ * Object.stub no longer calls the passed block if stubbed with a callable.
37
+ * Object.stub now passes blocks down to the callable result.
38
+ * Pushed Minitest::Test#time & #time_it up to Runnable.
39
+ * Test nil equality directly in assert_equal. Fixes #679. (voxik)
40
+
41
+ === 5.11.0b1 / 2017-12-20
42
+
43
+ * 2 major enhancements:
44
+
45
+ * Added Minitest::Result and Minitest::Result.from(runnable).
46
+ * Changed Minitest::Test to subclass Result and refactored methods up.
47
+
48
+ * 6 minor enhancements:
49
+
50
+ * Added --no-plugins and MT_NO_PLUGINS to bypass MT plugin autoloading. Helps with bad actors installed globally.
51
+ * Added bench_performance_{logarithmic,power} for spec-style benchmarks. (rickhull)
52
+ * Minitest.run_one_method now checks for instance of Result, not exact same class.
53
+ * Minitest::Test.run returns a Result version of self, not self.
54
+ * ProgressReporter#prerecord now explicitly prints klass.name. Allows for fakers.
55
+ * Removed Runnable.marshal_dump/load.
56
+
57
+ * 4 bug fixes:
58
+
59
+ * Object.stub no longer calls the passed block if stubbed with a callable.
60
+ * Object.stub now passes blocks down to the callable result.
61
+ * Pushed Minitest::Test#time & #time_it up to Runnable.
62
+ * Test nil equality directly in assert_equal. Fixes #679. (voxik)
63
+
64
+ === 5.10.3 / 2017-07-21
65
+
66
+ * 1 minor enhancement:
67
+
68
+ * Extended documentation for Mock#expect for multiple calls to mock object. (insti)
69
+
70
+ * 2 bug fixes:
71
+
72
+ * Finished off missing doco.
73
+ * Fixed verbose output on parallelize_me! classes. (chanks)
74
+
75
+ === 5.10.2 / 2017-05-09
76
+
77
+ * 1 minor enhancement:
78
+
79
+ * Added suggestion in minitest/hell to install minitest/proveit.
80
+
81
+ * 7 bug fixes:
82
+
83
+ * Expand MT6 to Minitest 6. (xaviershay)
84
+ * Fixed location of assert_send deprecation. (rab)
85
+ * Fixed location of nil assert_equal deprecation to work with expectations. (jeremyevans)
86
+ * Fixed minitest/hell to use parallelize_me! (azul)
87
+ * Made deprecation use warn so -W0 will silence it.
88
+ * Workaround for rdoc nodoc generation bug that totally f'd up minitest doco. (Paxa)
89
+ * Write aggregated_results directly to the IO object to avoid mixed encoding errors. (tenderlove)
90
+
91
+ === 5.10.1 / 2016-12-01
92
+
93
+ * 1 bug fix:
94
+
95
+ * Added a hack/kludge to deal with missing #prerecord on reporters that aren't properly subclassing AbstractReporter (I'm looking at you minitest-reporters)
96
+
97
+ === 5.10.0 / 2016-11-30
98
+
99
+ * 1 major enhancement:
100
+
101
+ * Deprecated ruby 1.8, 1.9, possibly 2.0, assert_send, & old MiniTest namespace.
102
+
103
+ * 3 minor enhancements:
104
+
105
+ * Warn if assert_equal expects a nil. This will fail in minitest 6+. (tenderlove)
106
+ * Added AbstractReporter#prerecord and extended ProgressReporter and CompositeReporter to use it.
107
+ * Minor optimization: remove runnables with no runnable methods before run.
108
+
109
+ * 3 bug fixes:
110
+
111
+ * Fix assert_throw rescuing any NameError and ArgumentError. (waldyr)
112
+ * Clean up (most of the) last remaining vestiges of minitest/unit.
113
+ * 2.4: removed deprecation warnings when referring to Fixnum.
114
+
115
+ === 5.9.1 / 2016-09-25
116
+
117
+ * 2 bug fixes:
118
+
119
+ * Re-release to refresh gem certificate signing. ugh.
120
+ * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
121
+
122
+ === 5.9.0 / 2016-05-16
123
+
124
+ * 8 minor enhancements:
125
+
126
+ * Added Minitest.info_signal accessors to customize signal for test run info. (nate)
127
+ * Added assert_mock to make it more clear that you're testing w/ them.
128
+ * Added negative filter by test name. (utilum)
129
+ * Added warning to README that 1.8 and 1.9 support will be dropped in minitest 6.
130
+ * Automatically activate minitest/hell if $MT_HELL is defined.
131
+ * Improved default error messages for assert and refute. (bhenderson)
132
+ * minitest/hell now tries to require minitest/proveit
133
+ * mu_pp for strings prints out non-standard encodings to improve assert_equal diffs.
134
+
135
+ * 1 bug fix:
136
+
137
+ * Removed Interrupt from PASSTHROUGH_EXCEPTIONS (already handled). (waldyr)
138
+
139
+ === 5.8.5 / 2016-09-25
140
+
141
+ * 2 bug fixes:
142
+
143
+ * Re-release to refresh gem certificate signing. ugh.
144
+ * Fixed hoe/minitest to not augment load path if we're actually testing minitest.
145
+
146
+ === 5.8.4 / 2016-01-21
147
+
148
+ * 1 bug fix:
149
+
150
+ * Allow Minitest::Assertion to pass through assert_raises so inner failures are dealt with first.
151
+
152
+ === 5.8.3 / 2015-11-17
153
+
154
+ * 1 minor enhancement:
155
+
156
+ * Added extra note about mocks and threads to readme. (zamith)
157
+
158
+ * 1 bug fix:
159
+
160
+ * Fixed bug in Mock#verify. (pithub/zamith)
161
+
162
+ === 5.8.2 / 2015-10-26
163
+
164
+ * 1 bug fix:
165
+
166
+ * Fixed using parallelize_me! and capture_io (or any locking io). (arlt/tenderlove)
167
+
168
+ === 5.8.1 / 2015-09-23
169
+
170
+ * 1 minor enhancement:
171
+
172
+ * Refactor assert_raises to be cleaner and to pass SystemExit and SignalException. (bhenderson)
173
+
174
+ === 5.8.0 / 2015-08-06
175
+
176
+ * 2 minor enhancements:
177
+
178
+ * Add optional delegation mechanism to extend object with a mock. (zamith)
179
+ * Return early if there are no filtered methods. (jeremyevans)
180
+
181
+ * 1 bug fix:
182
+
183
+ * Don't extend io with pride if io is not a tty. (toy)
184
+
185
+ === 5.7.0 / 2015-05-27
186
+
187
+ * 1 major enhancement:
188
+
189
+ * assert_raises now matches subclasses of the expected exception types. (jeremyevans)
190
+
191
+ * 3 minor enhancements:
192
+
193
+ * Added :block type for minitest/spec's #infect_an_assertion. (jeremyevans)
194
+ * Inline verification error messages in minitest/mock for GC performance. (zamith)
195
+ * assert_raises defaults to RuntimeError if not specified. (jeremyevans)
196
+
197
+ * 4 bug fixes:
198
+
199
+ * Added 'class' to minitest/mock's overridden_methods list. (zamith)
200
+ * Added file/line to infect_an_assertion's class_eval call. (jeremyevans)
201
+ * Cleared UnexpectedError's mesg w/ generic string.
202
+ * Fixed non-proc-oriented expectations when used on proc target. (jeremyevans)
203
+
204
+ === 5.6.1 / 2015-04-27
205
+
206
+ * 2 bug fixes:
207
+
208
+ * Added Minitest.clock_time and switched all Time.now to it. (tenderlove)
209
+ * Moved Minitest::Expectations#_ into Minitest::Spec::DSL.
210
+
211
+ === 5.6.0 / 2015-04-13
212
+
213
+ * 4 major enhancements:
214
+
215
+ * Added Minitest::Expectation value monad.
216
+ * Added Minitest::Expectations#_ that returns an Expectation. Aliased to value.
217
+ * All expectations are added to Minitest::Expectation.
218
+ * At some point, the methods on Object will be deprecated and then removed.
219
+
220
+ * 4 minor enhancements:
221
+
222
+ * Added a note about bundle exec pitfall in ruby 2.2+. (searls)
223
+ * Lazily start the parallel executor. (tenderlove)
224
+ * Make mocks more debugger-friendly (edward)
225
+ * Print out the current test run on interrupt. (riffraff)
226
+
227
+ * 3 bug fixes:
228
+
229
+ * Fix failing test under Windows. (kimhmadsen)
230
+ * Record mocked calls before they happen so mocks can raise exceptions easier (tho I'm not a fan). (corecode)
231
+ * Tried to clarify mocks vs stubs terminology better. (kkirsche)
232
+
233
+ === 5.5.1 / 2015-01-09
234
+
235
+ * 1 bug fix:
236
+
237
+ * Fixed doco problems. (zzak)
238
+
239
+ === 5.5.0 / 2014-12-12 // mri 2.2.0 (as a real gem)
240
+
241
+ * 1 minor enhancement:
242
+
243
+ * Allow seed to be given via ENV for rake test loader sadness: eg rake SEED=42.
244
+
245
+ === 5.4.3 / 2014-11-11
246
+
247
+ * 2 bug fixes:
248
+
249
+ * Clarified requirements for ruby are now 1.8.7 or better.
250
+ * Force encode error output in case mal-encoded exception is raised. (jasonrclark)
251
+
252
+ === 5.4.2 / 2014-09-26
253
+
254
+ * 2 minor enhancements:
255
+
256
+ * Extract teardown method list.
257
+ * Thanks to minitest-gcstats got a 5-10% speedup via reduced GC!
258
+
259
+ === 5.4.1 / 2014-08-28
260
+
261
+ * 1 bug fix:
262
+
263
+ * Fixed specs hidden by nesting/ordering bug (blowmage/apotonick)
264
+
265
+ === 5.4.0 / 2014-07-07
266
+
267
+ * 2 minor enhancements:
268
+
269
+ * Kernel#describe extended to splat additional_desc.
270
+ * Spec#spec_type extended to take a splat of additional items, passed to matcher procs.
271
+
272
+ * 1 bug fix:
273
+
274
+ * minitest/spec should require minitest/test, not minitest/unit. (doudou)
275
+
276
+ === 5.3.5 / 2014-06-17
277
+
278
+ * 1 minor enhancement:
279
+
280
+ * Spit and polish (mostly spit).
281
+
282
+ === 5.3.4 / 2014-05-15
283
+
284
+ * 1 minor enhancement:
285
+
286
+ * Test classes are randomized before running. (judofyr)
287
+
288
+ === 5.3.3 / 2014-04-14
289
+
290
+ * 1 bug fix:
291
+
292
+ * Fixed using expectations w/ DSL in Test class w/o describe. (blowmage+others)
293
+
294
+ === 5.3.2 / 2014-04-02
295
+
296
+ * 1 bug fix:
297
+
298
+ * Fixed doco on Assertions.assertions. (xaviershay)
299
+
300
+ === 5.3.1 / 2014-03-14
301
+
302
+ * 1 minor enhancement:
303
+
304
+ * Modified verbage on bad 'let' names to be more helpful. (Archytaus)
305
+
306
+ * 1 bug fix:
307
+
308
+ * Fixed 2 cases still using MiniTest. (mikesea)
309
+
310
+ === 5.3.0 / 2014-02-25
311
+
312
+ * 1 minor enhancement:
313
+
314
+ * Mocked methods can take a block to verify state. Seattle.rb 12 bday present from ernie! Thanks!!
315
+
316
+ === 5.2.3 / 2014-02-10
317
+
318
+ * 1 bug fix:
319
+
320
+ * Fixed Spec#let check to allow overriding of other lets. (mvz)
321
+
322
+ === 5.2.2 / 2014-01-22
323
+
324
+ * 1 minor enhancement:
325
+
326
+ * Spec#let raises ArgumentError if you override _any_ instance method (except subject). (rynr)
327
+
328
+ * 1 bug fix:
329
+
330
+ * Fixed up benchmark spec doco and added a test to demonstrate. (bhenderson)
331
+
332
+ === 5.2.1 / 2014-01-07
333
+
334
+ * 1 bug fix:
335
+
336
+ * Properly deal with horrible mix of runtime load errors + other at_exit handlers. (dougo/chqr)
337
+
338
+ === 5.2.0 / 2013-12-13
339
+
340
+ * 1 minor enhancement:
341
+
342
+ * Change expectations to allow calling most on procs (but not calling the proc). (bhenderson+others)
343
+
344
+ === 5.1.0 / 2013-12-05
345
+
346
+ * 1 minor enhancement:
347
+
348
+ * Use a Queue for scheduling parallel tests. (tenderlove)
349
+
350
+ * 1 bug fix:
351
+
352
+ * Fixed misspelling in doco. (amatsuda)
353
+
354
+ === 5.0.8 / 2013-09-20
355
+
356
+ * 1 bug fix:
357
+
358
+ * Fixed siginfo handler by rearranging reporters and fixing to_s. (tenderlove)
359
+
360
+ === 5.0.7 / 2013-09-05
361
+
362
+ * 2 minor enhancements:
363
+
364
+ * Added clarification about the use of thread local variables in expectations. (jemc)
365
+ * Added extra message about skipped tests, if any. Disable globally with $MT_NO_SKIP_MSG.
366
+
367
+ * 2 bug fixes:
368
+
369
+ * Only require minitest, not minitest/autorun in pride_plugin. (judofyr)
370
+ * Require rubygems in load_plugins in case you're not using minitest/autorun.
371
+
372
+ === 5.0.6 / 2013-06-28
373
+
374
+ * 3 minor enhancements:
375
+
376
+ * Allow stub to pass args to blocks. (swindsor)
377
+ * Improved warning message about minitest/autorun to address 1.9's minitest/autorun.
378
+ * Made minitest/test require minitest as needed. For lib writers. (erikh)
379
+
380
+ * 1 bug fix:
381
+
382
+ * Fixed missing require in minitest/test. (erikh)
383
+
384
+ === 4.7.5 / 2013-06-21 // mri 2.1.1
385
+
386
+ * 2 bug fixes:
387
+
388
+ * Fix Spec#describe_stack to be thread local.
389
+ * Fix multithreaded test failures by defining Time local to mock test namespace
390
+
391
+ === 5.0.5 / 2013-06-20
392
+
393
+ * 6 bug fixes:
394
+
395
+ * DOH! Fixed the rest of the new casing on Minitest. (splattael)
396
+ * Fixed typo on minitest/mock rdoc. (mrgilman/guiceolin)
397
+ * Make Spec::DSL.describe_stack thread local to avoid failing on my own tests.
398
+ * Make a fake Time.now local to the tests so they won't interfere with real reporter timings.
399
+ * Make everything mockable by wrapping all 'special' methods in a smarter wrapper. (bestie)
400
+ * Raise ArgumentError if let name starts with 'test'. (johnmaxwell)
401
+
402
+ === 5.0.4 / 2013-06-07
403
+
404
+ * 5 minor enhancements:
405
+
406
+ * Added AbstractReporter, defining required Reporter API to quack properly.
407
+ * Added doco for writing reporters.
408
+ * Refactored Reporter into ProgressReporter and SummaryReporter. (idea: phiggins, code:me+scotch)
409
+ * Refactored SummaryReporter pushing up to StatisticsReporter. (phiggins)
410
+ * Removed Reporter#run_and_report... cleaner, but doesn't "fit" in the API.
411
+
412
+ === 5.0.3 / 2013-05-29
413
+
414
+ * 4 minor enhancements:
415
+
416
+ * Added Runnable.with_info_handler and Runnable.on_signal.
417
+ * Moved io.sync restore to Reporter#run_and_report.
418
+ * Refactored inner loop of Reporter#report to #to_s. Callable for status updates.
419
+ * Restored MT4's mid-run report (^t). (tenderlove).
420
+
421
+ === 5.0.2 / 2013-05-20
422
+
423
+ * 3 bug fixes:
424
+
425
+ * Gem.find_files is smarter than I remember... cause I wrote it that way. *sigh* I'm getting old.
426
+ * Pride wasn't doing puts through its #io. (tmiller/tenderlove)
427
+ * Replaced Runnable#dup and Test#dup with marshal_dump/load. Too many problems cropping up on untested rails code. (tenderlove/rubys)
428
+
429
+ === 5.0.1 / 2013-05-14
430
+
431
+ * 2 bug fixes:
432
+
433
+ * Documented Assertions' need for @assertions to be defined by the includer.
434
+ * Only load one plugin version per name. Tries for latest.
435
+
436
+ === 5.0.0 / 2013-05-10
437
+
438
+ Oh god... here we go...
439
+
440
+ Minitest 5:
441
+
442
+ * 4 deaths in the family:
443
+
444
+ * MiniTest.runner is dead. No more manager objects.
445
+ * MiniTest::Unit#record is dead. Use a Reporter instance instead.
446
+ * MiniTest::Unit._run_* is dead. Runnable things are responsible for their own runs.
447
+ * MiniTest::Unit.output is dead. No more centralized IO.
448
+
449
+ * 12 major (oft incompatible) changes:
450
+
451
+ * Renamed MiniTest to Minitest. Your pinkies will thank me. (aliased to MiniTest)
452
+ * Removed MiniTest::Unit entirely. No more manager objects.
453
+ * Added Minitest::Runnable. Everything minitest can run subclasses this.
454
+ * Renamed MiniTest::Unit::TestCase to Minitest::Test (subclassing Runnable).
455
+ * Added Minitest::Benchmark.
456
+ * Your benchmarks need to move to their own subclass.
457
+ * Benchmarks using the spec DSL have to have "Bench" somewhere in their describe.
458
+ * MiniTest::Unit.after_tests moved to Minitest.after_tests
459
+ * MiniTest::Unit.autorun is now Minitest.autorun. Just require minitest/autorun pls.
460
+ * Removed ParallelEach#grep since it isn't used anywhere.
461
+ * Renamed Runnable#__name__ to Runnable#name (but uses @NAME internally).
462
+ * Runnable#run needs to return self. Allows for swapping of results as needed.
463
+
464
+ * 8 minor moves:
465
+
466
+ * Moved Assertions module to minitest/assertions.rb
467
+ * Moved Expectations module to minitest/expectations.rb
468
+ * Moved Test to minitest/test.rb
469
+ * Moved everything else in minitest/unit.rb to minitest.rb
470
+ * minitest/unit.rb is now just a small (user-test only) compatibility layer.
471
+ * Moved most of minitest/pride into minitest/pride_plugin.
472
+ * minitest/pride now just activates pride.
473
+ * Moved ParallelEach under Minitest.
474
+
475
+ * 9 additions:
476
+
477
+ * Added a plugin system that can extend command-line options.
478
+ * Added Minitest.extensions.
479
+ * Added Minitest.reporter (only available during startup).
480
+ * Added Minitest.run(args). This is the very top of any Minitest run.
481
+ * Added Minitest::Reporter. Everything minitest can report goes through here.
482
+ * Minitest.reporter is a composite so you can add your own.
483
+ * Added Minitest::CompositeReporter. Much easier to extend with your own reporters.
484
+ * Added UnexpectedError, an Assertion subclass, to wrap up errors.
485
+ * Minitest::Test#run is now freakin' beautiful. 47 -> 17 loc
486
+
487
+ * 11 other:
488
+
489
+ * Removed Object.infect_with_assertions (it was already dead code).
490
+ * Runnables are responsible for knowing their result_code (eg "." or "F").
491
+ * Minitest.autorun now returns boolean, not exit code.
492
+ * Added FAQ entry for extending via modules. (phiggins)
493
+ * Implement Runnable#dup to cleanse state back to test results. Helps with serialization. pair:tenderlove
494
+ * Moved ParallelEach under Minitest.
495
+ * Runnable#run needs to return self. Allows for swapping of results as needed.
496
+ * Minitest.init_plugins passes down options.
497
+ * Minitest.load_plugins only loads once.
498
+ * Fixed minitest/pride to work with rake test loader again. (tmiller)
499
+ * Added count/size to ParallelEach to fix use w/in stdlib's test/unit. :( (btaitelb)
500
+
501
+ * 5 voodoo:
502
+
503
+ * Removed mutex from minitest.rb (phiggins)
504
+ * Removed mutex from test.rb (phiggins)
505
+ * Removed Minitest::Reporter.synchronize (phiggins)
506
+ * Removed Minitest::Test.synchronize (phiggins)
507
+ * Upon loading minitest/parallel_each, record, capture_io and capture_subprocess_io are doped with synchronization code. (phiggins)
508
+
509
+ === 4.7.4 / 2013-05-01
510
+
511
+ This is probably the last release of the 4.x series. It will be merged
512
+ to ruby and will be put into maintenance mode there.
513
+
514
+ I'm not set in stone on this, but at this point further development of
515
+ minitest (5+) will be gem-only. It is just too hard to work w/in
516
+ ruby-core w/ test-unit compatibility holding minitest development
517
+ back.
518
+
519
+ * 2 minor enhancements:
520
+
521
+ * Added count/size to ParallelEach to fix use w/in stdlib's test/unit. :( (btaitelb)
522
+ * Allow disabling of info_signal handler in runner. (erikh)
523
+
524
+ === 4.7.3 / 2013-04-20
525
+
526
+ * 1 bug fix:
527
+
528
+ * Reverted stubbing of module methods change. Stub the user, not the impl. (ab9/tyabe)
529
+
530
+ === 4.7.2 / 2013-04-18
531
+
532
+ * 2 bug fixes:
533
+
534
+ * Fixed inconsistency in refute_in_delta/epsilon. I double negatived my logic. (nettsundere)
535
+ * Fixed stubbing of module methods (eg Kernel#sleep). (steveklabnik)
536
+
537
+ === 4.7.1 / 2013-04-09
538
+
539
+ * 1 minor enhancement:
540
+
541
+ * Added FAQ section to README
542
+
543
+ * 1 bug fix:
544
+
545
+ * Fixed bug where guard runs tests bypassing minitest/autorun and an ivar isn't set right. (darrencauthon)
546
+
547
+ === 4.7.0 / 2013-03-18
548
+
549
+ * 1 major enhancement:
550
+
551
+ * Refactored MiniTest::Spec into MiniTest::Spec::DSL.
552
+
553
+ * 1 bug fix:
554
+
555
+ * Removed $DEBUG handler that detected when test/unit and minitest were both loaded. (tenderlove)
556
+
557
+ === 4.6.2 / 2013-02-27
558
+
559
+ * 1 minor enhancement:
560
+
561
+ * Change error output to match Class#method, making it easier to use -n filter.
562
+
563
+ === 4.6.1 / 2013-02-14
564
+
565
+ * 1 bug fix:
566
+
567
+ * Fixed an option processing bug caused by test/unit's irresponsibly convoluted code. (floehopper)
568
+
569
+ === 4.6.0 / 2013-02-07
570
+
571
+ * 3 major enhancements:
572
+
573
+ * Removed ::reset_setup_teardown_hooks
574
+ * Removed the long deprecated assert_block
575
+ * Removed the long deprecated lifecycle hooks: add_(setup|teardown)_hook
576
+
577
+ * 1 minor enhancement:
578
+
579
+ * Allow filtering tests by suite name as well as test name. (lazyatom)
580
+
581
+ * 2 bug fixes:
582
+
583
+ * Made hex handling (eg object_ids) in mu_pp_for_diff more specific. (maxim)
584
+ * nodoc top-level module. (zzak)
585
+
586
+ === 4.5.0 / 2013-01-22
587
+
588
+ * 1 major enhancement:
589
+
590
+ * Rearranged minitest/unit.rb so NO parallelization code is loaded/used until you opt-in.
591
+
592
+ * 4 minor enhancements:
593
+
594
+ * Added TestCase#skipped? for teardown guards
595
+ * Added maglev? guard
596
+ * Document that record can be sent twice if teardown fails or errors (randycoulman)
597
+ * Errors in teardown are now recorded. (randycoulman)
598
+
599
+ * 3 bug fixes:
600
+
601
+ * Added hacks and skips to get clean test runs on maglev
602
+ * Modified float tests for maglev float output differences. Not sure this is right. Not sure I care.
603
+ * Test for existance of diff.exe instead of assuming they have devkit. (blowmage/Cumbayah)
604
+
605
+ === 4.4.0 / 2013-01-07
606
+
607
+ * 3 minor enhancements:
608
+
609
+ * Added fit_logarithic and assert_performance_logarithmic. (ktheory)
610
+ * Merge processed options so others can mess with defaults. (tenderlove)
611
+ * TestCase#message can now take another proc to defer custom message cost. (ordinaryzelig/bhenderson)
612
+
613
+ * 1 bug fix:
614
+
615
+ * TestCase#passed? now true if test is skipped. (qanhd)
616
+
617
+ === 4.3.3 / 2012-12-06
618
+
619
+ * 1 bug fix:
620
+
621
+ * Updated information about stubbing. (daviddavis)
622
+
623
+ === 4.3.2 / 2012-11-27 // mri 2.0.0
624
+
625
+ * 1 minor enhancement:
626
+
627
+ * Improved assert_equals error message to point you at #== of member objects. (kcurtin)
628
+
629
+ === 4.3.1 / 2012-11-23
630
+
631
+ * 1 bug fix:
632
+
633
+ * Moved test_children to serial testcase to prevent random failures.
634
+
635
+ === 4.3.0 / 2012-11-17
636
+
637
+ * 4 minor enhancements:
638
+
639
+ * Allow #autorun to run even if loaded with other test libs that call exit. (sunaku)
640
+ * Do not include Expectations in Object if $MT_NO_EXPECTATIONS is set (experimental?)
641
+ * Gave some much needed love to assert_raises.
642
+ * Mock#expect can take a block to custom-validate args. (gmoothart)
643
+
644
+ === 4.2.0 / 2012-11-02
645
+
646
+ * 4 major enhancements:
647
+
648
+ * Added minitest/hell - run all your tests through the ringer!
649
+ * Added support for :parallel test_order to run test cases in parallel.
650
+ * Removed last_error and refactored runner code to be threadsafe.
651
+ * _run_suites now runs suites in parallel if they opt-in.
652
+
653
+ * 4 minor enhancements:
654
+
655
+ * Added TestCase#synchronize
656
+ * Added TestCase.make_my_diffs_pretty!
657
+ * Added TestCase.parallelize_me!
658
+ * Lock on capture_io for thread safety (tenderlove)
659
+
660
+ === 4.1.0 / 2012-10-05
661
+
662
+ * 2 minor enhancements:
663
+
664
+ * Added skip example to readme. (dissolved)
665
+ * Extracted backtrace filter to object. (tenderlove)
666
+
667
+ * 1 bug fix:
668
+
669
+ * OMG I'm so dumb. Fixed access to deprecated hook class methods. I hate ruby modules. (route)
670
+
671
+ === 4.0.0 / 2012-09-28
672
+
673
+ * 1 major enhancement:
674
+
675
+ * The names of a privately-used undocumented constants are Super Important™.
676
+
677
+ * 1 minor enhancement:
678
+
679
+ * Support stubbing methods that would be handled via method_missing. (jhsu)
680
+
681
+ * 3 bug fixes:
682
+
683
+ * Add include_private param to MiniTest::Mock#respond_to? (rf-)
684
+ * Fixed use of minitest/pride with --help. (zw963)
685
+ * Made 'No visible difference.' message more clear. (ckrailo)
686
+
687
+ === 3.5.0 / 2012-09-21
688
+
689
+ * 1 minor enhancement:
690
+
691
+ * Added #capture_subprocess_io. (route)
692
+
693
+ === 3.4.0 / 2012-09-05
694
+
695
+ * 2 minor enhancements:
696
+
697
+ * assert_output can now take regexps for expected values. (suggested by stomar)
698
+ * Clarified that ruby 1.9/2.0's phony gems cause serious confusion for rubygems.
699
+
700
+ === 3.3.0 / 2012-07-26
701
+
702
+ * 1 major enhancement:
703
+
704
+ * Deprecated add_(setup|teardown)_hook in favor of (before|after)_(setup|teardown) [2013-01-01]
705
+
706
+ * 4 minor enhancements:
707
+
708
+ * Refactored deprecated hook system into a module.
709
+ * Refactored lifecycle hooks into a module.
710
+ * Removed after_setup/before_teardown + run_X_hooks from Spec.
711
+ * Spec#before/after now do a simple define_method and call super. DUR.
712
+
713
+ * 2 bug fixes:
714
+
715
+ * Fixed #passed? when used against a test that called flunk. (floehopper)
716
+ * Fixed rdoc bug preventing doco for some expectations. (stomar).
717
+
718
+ === 3.2.0 / 2012-06-26
719
+
720
+ * 1 minor enhancement:
721
+
722
+ * Stubs now yield self. (peterhellberg)
723
+
724
+ * 1 bug fix:
725
+
726
+ * Fixed verbose test that only fails when run in verbose mode. mmmm irony.
727
+
728
+ === 3.1.0 / 2012-06-13
729
+
730
+ * 2 minor enhancements:
731
+
732
+ * Removed LONG deprecated Unit.out accessor
733
+ * Removed generated method name munging from minitest/spec. (ordinaryzelig/tenderlove)
734
+
735
+ === 3.0.1 / 2012-05-24
736
+
737
+ * 1 bug fix:
738
+
739
+ * I'm a dumbass and refactored into Mock#call. Renamed to #__call so you can mock #call. (mschuerig)
740
+
741
+ === 3.0.0 / 2012-05-08
742
+
743
+ * 3 major enhancements:
744
+
745
+ * Added Object#stub (in minitest/mock.rb).
746
+ * Mock#expect mocks are used in the order they're given.
747
+ * Mock#verify now strictly compares against expect calls.
748
+
749
+ * 3 minor enhancements:
750
+
751
+ * Added caller to deprecation message.
752
+ * Mock error messages are much prettier.
753
+ * Removed String check for RHS of assert/refute_match. This lets #to_str work properly.
754
+
755
+ * 1 bug fix:
756
+
757
+ * Support drive letter on Windows. Patch provided from MRI by Usaku NAKAMURA. (ayumin)
758
+
759
+ === 2.12.1 / 2012-04-10
760
+
761
+ * 1 minor enhancement:
762
+
763
+ * Added ruby releases to History.txt to make it easier to see what you're missing
764
+
765
+ * 1 bug fix:
766
+
767
+ * Rolled my own deprecate msg to allow MT to work with rubygems < 1.7
768
+
769
+ === 2.12.0 / 2012-04-03
770
+
771
+ * 4 minor enhancements:
772
+
773
+ * ::it returns test method name (wojtekmach)
774
+ * Added #record method to runner so runner subclasses can cleanly gather data.
775
+ * Added Minitest alias for MiniTest because even I forget.
776
+ * Deprecated assert_block!! Yay!!!
777
+
778
+ * 1 bug fix:
779
+
780
+ * Fixed warning in i_suck_and_my_tests_are_order_dependent! (phiggins)
781
+
782
+ === 2.11.4 / 2012-03-20
783
+
784
+ * 2 minor enhancements:
785
+
786
+ * Updated known extensions
787
+ * You got your unicode in my tests! You got your tests in my unicode! (fl00r)
788
+
789
+ * 1 bug fix:
790
+
791
+ * Fixed MiniTest::Mock example in the readme. (conradwt)
792
+
793
+ === 2.11.3 / 2012-02-29
794
+
795
+ * 2 bug fixes:
796
+
797
+ * Clarified that assert_raises returns the exception for further testing
798
+ * Fixed assert_in_epsilon when both args are negative. (tamc)
799
+
800
+ === 2.11.2 / 2012-02-14
801
+
802
+ * 1 minor enhancement:
803
+
804
+ * Display failures/errors on SIGINFO. (tenderlove)
805
+
806
+ * 1 bug fix:
807
+
808
+ * Fixed MiniTest::Unit.after_tests for Ruby 1.9.3. (ysbaddaden)
809
+
810
+ === 2.11.1 / 2012-02-01
811
+
812
+ * 3 bug fixes:
813
+
814
+ * Improved description for --name argument. (drd)
815
+ * Ensure Mock#expect's expected args is an Array. (mperham)
816
+ * Ensure Mock#verify verifies multiple expects of the same method. (chastell)
817
+
818
+ === 2.11.0 / 2012-01-25
819
+
820
+ * 2 minor enhancements:
821
+
822
+ * Added before / after hooks for setup and teardown. (tenderlove)
823
+ * Pushed run_setup_hooks down to Spec. (tenderlove)
824
+
825
+ === 2.10.1 / 2012-01-17
826
+
827
+ * 1 bug fix:
828
+
829
+ * Fixed stupid 1.9 path handling grumble grumble. (graaff)
830
+
831
+ === 2.10.0 / 2011-12-20
832
+
833
+ * 3 minor enhancements:
834
+
835
+ * Added specs for must/wont be_empty/respond_to/be_kind_of and others.
836
+ * Added tests for assert/refute predicate.
837
+ * Split minitest/excludes.rb out to its own gem.
838
+
839
+ * 1 bug fix:
840
+
841
+ * Fixed must_be_empty and wont_be_empty argument handling. (mrsimo)
842
+
843
+ === 2.9.1 / 2011-12-13
844
+
845
+ * 4 minor enhancements:
846
+
847
+ * Added a ton of tests on spec error message output.
848
+ * Cleaned up consistency of msg handling on unary expectations.
849
+ * Improved error messages on assert/refute_in_delta.
850
+ * infect_an_assertion no longer checks arity and better handles args.
851
+
852
+ * 1 bug fix:
853
+
854
+ * Fixed error message on specs when 2+ args and custom message provided. (chastell)
855
+
856
+ === 2.9.0 / 2011-12-07
857
+
858
+ * 4 minor enhancements:
859
+
860
+ * Added TestCase.exclude and load_excludes for programmatic filtering of tests.
861
+ * Added guard methods so you can cleanly skip based on platform/impl
862
+ * Holy crap! 100% doco! `rdoc -C` ftw
863
+ * Switch assert_output to test stderr before stdout to possibly improve debugging
864
+
865
+ === 2.8.1 / 2011-11-17
866
+
867
+ * 1 bug fix:
868
+
869
+ * Ugh. 1.9's test/unit violates my internals. Added const_missing.
870
+
871
+ === 2.8.0 / 2011-11-08
872
+
873
+ * 2 minor enhancements:
874
+
875
+ * Add a method so that code can be run around a particular test case (tenderlove)
876
+ * Turn off backtrace filtering if we're running inside a ruby checkout. (drbrain)
877
+
878
+ * 2 bug fixes:
879
+
880
+ * Fixed 2 typos and 2 doc glitches. (splattael)
881
+ * Remove unused block arguments to avoid creating Proc objects. (k-tsj)
882
+
883
+ === 2.7.0 / 2011-10-25
884
+
885
+ * 2 minor enhancements:
886
+
887
+ * Include failed values in the expected arg output in MockExpectationError. (nono)
888
+ * Make minitest/pride work with other 256 color capable terms. (sunaku)
889
+
890
+ * 2 bug fixes:
891
+
892
+ * Clarified the documentation of minitest/benchmark (eregon)
893
+ * Fixed using expectations in regular unit tests. (sunaku)
894
+
895
+ === 2.6.2 / 2011-10-19
896
+
897
+ * 1 minor enhancement:
898
+
899
+ * Added link to vim bundle. (sunaku)
900
+
901
+ * 2 bug fixes:
902
+
903
+ * Force gem activation in hoe minitest plugin
904
+ * Support RUBY_VERSION='2.0.0' (nagachika)
905
+
906
+ === 2.6.1 / 2011-09-27
907
+
908
+ * 2 bug fixes:
909
+
910
+ * Alias Spec.name from Spec.to_s so it works when @name is nil (nathany)
911
+ * Fixed assert and refute_operator where second object has a bad == method.
912
+
913
+ === 2.6.0 / 2011-09-13
914
+
915
+ * 2 minor enhancements:
916
+
917
+ * Added specify alias for it and made desc optional.
918
+ * Spec#must_be and #wont_be can be used with predicates (metaskills)
919
+
920
+ * 1 bug fix:
921
+
922
+ * Fixed Mock.respond_to?(var) to work with strings. (holli)
923
+
924
+ === 2.5.1 / 2011-08-27 // ruby 1.9.3: p0, p125, p34579
925
+
926
+ * 2 minor enhancements:
927
+
928
+ * Added gem activation for minitest in minitest/autoload to help out 1.9 users
929
+ * Extended Spec.register_spec_type to allow for procs instead of just regexps.
930
+
931
+ === 2.5.0 / 2011-08-18
932
+
933
+ * 4 minor enhancements:
934
+
935
+ * Added 2 more arguments against rspec: let & subject in 9 loc! (emmanuel/luis)
936
+ * Added TestCase.i_suck_and_my_tests_are_order_dependent!
937
+ * Extended describe to take an optional method name (2 line change!). (emmanuel)
938
+ * Refactored and extended minitest/pride to do full 256 color support. (lolcat)
939
+
940
+ * 1 bug fix:
941
+
942
+ * Doc fixes. (chastell)
943
+
944
+ === 2.4.0 / 2011-08-09
945
+
946
+ * 4 minor enhancements:
947
+
948
+ * Added simple examples for all expectations.
949
+ * Improved Mock error output when args mismatch.
950
+ * Moved all expectations from Object to MiniTest::Expectations.
951
+ * infect_with_assertions has been removed due to excessive clever
952
+
953
+ * 4 bug fixes:
954
+
955
+ * Fix Assertions#mu_pp to deal with immutable encoded strings. (ferrous26)
956
+ * Fix minitest/pride for MacRuby (ferrous26)
957
+ * Made error output less fancy so it is more readable
958
+ * Mock shouldn't undef === and inspect. (dgraham)
959
+
960
+ === 2.3.1 / 2011-06-22
961
+
962
+ * 1 bug fix:
963
+
964
+ * Fixed minitest hoe plugin to be a spermy dep and not depend on itself.
965
+
966
+ === 2.3.0 / 2011-06-15
967
+
968
+ * 5 minor enhancements:
969
+
970
+ * Add setup and teardown hooks to MiniTest::TestCase. (phiggins)
971
+ * Added nicer error messages for MiniTest::Mock. (phiggins)
972
+ * Allow for less specific expected arguments in Mock. (bhenderson/phiggins)
973
+ * Made MiniTest::Mock a blank slate. (phiggins)
974
+ * Refactored minitest/spec to use the hooks instead of define_inheritable_method. (phiggins)
975
+
976
+ * 2 bug fixes:
977
+
978
+ * Fixed TestCase's inherited hook. (dchelimsky/phiggins/jamis, the 'good' neighbor)
979
+ * MiniTest::Assertions#refute_empty should use mu_pp in the default message. (whatthejeff)
980
+
981
+ === 2.2.2 / 2011-06-01
982
+
983
+ * 2 bug fixes:
984
+
985
+ * Got rid of the trailing period in message for assert_equal. (tenderlove)
986
+ * Windows needs more flushing. (Akio Tajima)
987
+
988
+ === 2.2.1 / 2011-05-31
989
+
990
+ * 1 bug fix:
991
+
992
+ * My _ONE_ non-rubygems-using minitest user goes to Seattle.rb!
993
+
994
+ === 2.2.0 / 2011-05-29
995
+
996
+ * 6 minor enhancements:
997
+
998
+ * assert_equal (and must_equal) now tries to diff output where it makes sense.
999
+ * Added Assertions#diff(exp, act) to be used by assert_equal.
1000
+ * Added Assertions#mu_pp_for_diff
1001
+ * Added Assertions.diff and diff=
1002
+ * Moved minitest hoe-plugin from hoe-seattlerb. (erikh)
1003
+ * Skipped tests only output details in verbose mode. (tenderlove+zenspider=xoxo)
1004
+
1005
+ === 2.1.0 / 2011-04-11
1006
+
1007
+ * 5 minor enhancements:
1008
+
1009
+ * Added MiniTest::Spec.register_spec_type(matcher, klass) and spec_type(desc)
1010
+ * Added ability for specs to share code via subclassing of Spec. (metaskills)
1011
+ * Clarified (or tried to) bench_performance_linear's use of threshold.
1012
+ * MiniTest::Unit.runner=(runner) provides an easy way of creating custom test runners for specialized needs. (justinweiss)
1013
+ * Reverse order of inheritance in teardowns of specs. (deepfryed)
1014
+
1015
+ * 3 bug fixes:
1016
+
1017
+ * FINALLY fixed problems of inheriting specs in describe/it/describe scenario. (MGPalmer)
1018
+ * Fixed a new warning in 1.9.3.
1019
+ * Fixed assert_block's message handling. (nobu)
1020
+
1021
+ === 2.0.2 / 2010-12-24
1022
+
1023
+ * 1 minor enhancement:
1024
+
1025
+ * Completed doco on minitest/benchmark for specs.
1026
+
1027
+ * 1 bug fix:
1028
+
1029
+ * Benchmarks in specs that didn't call bench_range would die. (zzak).
1030
+
1031
+ === 2.0.1 / 2010-12-15
1032
+
1033
+ * 4 minor enhancements:
1034
+
1035
+ * Do not filter backtrace if $DEBUG
1036
+ * Exit autorun via nested at_exit handler, in case other libs call exit
1037
+ * Make options accesor lazy.
1038
+ * Split printing of test name and its time. (nurse)
1039
+
1040
+ * 1 bug fix:
1041
+
1042
+ * Fix bug when ^T is hit before runner start
1043
+
1044
+ === 2.0.0 / 2010-11-11
1045
+
1046
+ * 3 major enhancements:
1047
+
1048
+ * Added minitest/benchmark! Assert your performance! YAY!
1049
+ * Refactored runner to allow for more extensibility. See minitest/benchmark.
1050
+ * This makes the runner backwards incompatible in some ways!
1051
+
1052
+ * 9 minor enhancements:
1053
+
1054
+ * Added MiniTest::Unit.after_tests { ... }
1055
+ * Improved output by adding test rates and a more sortable verbose format
1056
+ * Improved readme based on feedback from others
1057
+ * Added io method to TestCase. If used, it'll supplant '.EF' output.
1058
+ * Refactored IO in MiniTest::Unit.
1059
+ * Refactored _run_anything to _run_suite to make it easier to wrap (ngauthier)
1060
+ * Spec class names are now the unmunged descriptions (btakita)
1061
+ * YAY for not having redundant rdoc/readmes!
1062
+ * Help output is now generated from the flags you passed straight up.
1063
+
1064
+ * 4 bug fixes:
1065
+
1066
+ * Fixed scoping issue on minitest/mock (srbaker/prosperity)
1067
+ * Fixed some of the assertion default messages
1068
+ * Fixes autorun when on windows with ruby install on different drive (larsch)
1069
+ * Fixed rdoc output bug in spec.rb
1070
+
1071
+ === 1.7.2 / 2010-09-23
1072
+
1073
+ * 3 bug fixes:
1074
+
1075
+ * Fixed doco for expectations and Spec.
1076
+ * Fixed test_capture_io on 1.9.3+ (sora_h)
1077
+ * assert_raises now lets MiniTest::Skip through. (shyouhei)
1078
+
1079
+ === 1.7.1 / 2010-09-01
1080
+
1081
+ * 1 bug fix:
1082
+
1083
+ * 1.9.2 fixes for spec tests
1084
+
1085
+ === 1.7.0 / 2010-07-15
1086
+
1087
+ * 5 minor enhancements:
1088
+
1089
+ * Added assert_output (mapped to must_output).
1090
+ * Added assert_silent (mapped to must_be_silent).
1091
+ * Added examples to readme (Mike Dalessio)
1092
+ * Added options output at the top of the run, for fatal run debugging (tenderlove)
1093
+ * Spec's describe method returns created class
1094
+
1095
+ === 1.6.0 / 2010-03-27 // ruby 1.9.2-p290
1096
+
1097
+ * 10 minor enhancements:
1098
+
1099
+ * Added --seed argument so you can reproduce a random order for debugging.
1100
+ * Added documentation for assertions
1101
+ * Added more rdoc and tons of :nodoc:
1102
+ * Added output to give you all the options you need to reproduce that run.
1103
+ * Added proper argument parsing to minitest.
1104
+ * Added unique serial # to spec names so order can be preserved (needs tests). (phrogz)
1105
+ * Empty 'it' fails with default msg. (phrogz)
1106
+ * Remove previous method on expect to remove 1.9 warnings
1107
+ * Spec#it is now order-proof wrt subclasses/nested describes.
1108
+ * assert_same error message now reports in decimal, eg: oid=123. (mattkent)
1109
+
1110
+ * 2 bug fixes:
1111
+
1112
+ * Fixed message on refute_same to be consistent with assert_same.
1113
+ * Fixed method randomization to be stable for testing.
1114
+
1115
+ === 1.5.0 / 2010-01-06
1116
+
1117
+ * 4 minor enhancements:
1118
+
1119
+ * Added ability to specify what assertions should have their args flipped.
1120
+ * Don't flip arguments on *include and *respond_to assertions.
1121
+ * Refactored Module.infect_an_assertion from Module.infect_with_assertions.
1122
+ * before/after :all now bitches and acts like :each
1123
+
1124
+ * 3 bug fixes:
1125
+
1126
+ * Nested describes now map to nested test classes to avoid namespace collision.
1127
+ * Using undef_method instead of remove_method to clean out inherited specs.
1128
+ * assert_raises was ignoring passed in message.
1129
+
1130
+ === 1.4.2 / 2009-06-25
1131
+
1132
+ * 1 bug fix:
1133
+
1134
+ * Fixed info handler for systems that don't have siginfo.
1135
+
1136
+ === 1.4.1 / 2009-06-23
1137
+
1138
+ * 1 major enhancement:
1139
+
1140
+ * Handle ^C and other fatal exceptions by failing
1141
+
1142
+ * 1 minor enhancement:
1143
+
1144
+ * Added something to catch mixed use of test/unit and minitest if $DEBUG
1145
+
1146
+ * 1 bug fix:
1147
+
1148
+ * Added SIGINFO handler for finding slow tests without verbose
1149
+
1150
+ === 1.4.0 / 2009-06-18
1151
+
1152
+ * 5 minor enhancement:
1153
+
1154
+ * Added clarification doco.
1155
+ * Added specs and mocks to autorun.
1156
+ * Changed spec test class creation to be non-destructive.
1157
+ * Updated rakefile for new hoe capabilities.
1158
+ * describes are nestable (via subclass). before/after/def inherits, specs don't.
1159
+
1160
+ * 3 bug fixes:
1161
+
1162
+ * Fixed location on must/wont.
1163
+ * Switched to __name__ to avoid common ivar name.
1164
+ * Fixed indentation in test file (1.9).
1165
+
1166
+ === 1.3.1 / 2009-01-20 // ruby 1.9.1-p431
1167
+
1168
+ * 1 minor enhancement:
1169
+
1170
+ * Added miniunit/autorun.rb as replacement for test/unit.rb's autorun.
1171
+
1172
+ * 16 bug fixes:
1173
+
1174
+ * 1.9 test fixes.
1175
+ * Bug fixes from nobu and akira for really odd scenarios. They run ruby funny.
1176
+ * Fixed (assert|refute)_match's argument order.
1177
+ * Fixed LocalJumpError in autorun if exception thrown before at_exit.
1178
+ * Fixed assert_in_delta (should be >=, not >).
1179
+ * Fixed assert_raises to match Modules.
1180
+ * Fixed capture_io to not dup IOs.
1181
+ * Fixed indentation of capture_io for ruby 1.9 warning.
1182
+ * Fixed location to deal better with custom assertions and load paths. (Yuki)
1183
+ * Fixed order of (must|wont)_include in MiniTest::Spec.
1184
+ * Fixed skip's backtrace.
1185
+ * Got arg order wrong in *_match in tests, message wrong as a result.
1186
+ * Made describe private. For some reason I thought that an attribute of Kernel.
1187
+ * Removed disable_autorun method, added autorun.rb instead.
1188
+ * assert_match escapes if passed string for pattern.
1189
+ * instance_of? is different from ===, use instance_of.
1190
+
1191
+ === 1.3.0 / 2008-10-09
1192
+
1193
+ * 2 major enhancements:
1194
+
1195
+ * renamed to minitest and pulled out test/unit compatibility.
1196
+ * mini/test.rb is now minitest/unit.rb, everything else maps directly.
1197
+
1198
+ * 12 minor enhancements:
1199
+
1200
+ * assert_match now checks that act can call =~ and converts exp to a
1201
+ regexp only if needed.
1202
+ * Added assert_send... seems useless to me tho.
1203
+ * message now forces to string... ruby-core likes to pass classes and arrays :(
1204
+ * Added -v handling and switched to @verbose from $DEBUG.
1205
+ * Verbose output now includes test class name and adds a sortable running time!
1206
+ * Switched message generation into procs for message deferment.
1207
+ * Added skip and renamed fail to flunk.
1208
+ * Improved output failure messages for assert_instance_of, assert_kind_of
1209
+ * Improved output for assert_respond_to, assert_same.
1210
+ * at_exit now exits false instead of errors+failures.
1211
+ * Made the tests happier and more readable imhfo.
1212
+ * Switched index(s) == 0 to rindex(s, 0) on nobu's suggestion. Faster.
1213
+
1214
+ * 5 bug fixes:
1215
+
1216
+ * 1.9: Added encoding normalization in mu_pp.
1217
+ * 1.9: Fixed backtrace filtering (BTs are expanded now)
1218
+ * Added back exception_details to assert_raises. DOH.
1219
+ * Fixed shadowed variable in mock.rb
1220
+ * Fixed stupid muscle memory message bug in assert_send.
1221
+
1222
+ === 1.2.1 / 2008-06-10
1223
+
1224
+ * 7 minor enhancements:
1225
+
1226
+ * Added deprecations everywhere in test/unit.
1227
+ * Added test_order to TestCase. :random on mini, :sorted on test/unit (for now).
1228
+ * Big cleanup in test/unit for rails. Thanks Jeremy Kemper!
1229
+ * Minor readability cleanup.
1230
+ * Pushed setup/run/teardown down to testcase allowing specialized testcases.
1231
+ * Removed pp. Tests run 2x faster. :/
1232
+ * Renamed deprecation methods and moved to test/unit/deprecate.rb.
1233
+
1234
+ === 1.2.0 / 2008-06-09
1235
+
1236
+ * 2 major enhancements:
1237
+
1238
+ * Added Mini::Spec.
1239
+ * Added Mini::Mock. Thanks Steven Baker!!
1240
+
1241
+ * 23 minor enhancements:
1242
+
1243
+ * Added bin/use_miniunit to make it easy to test out miniunit.
1244
+ * Added -n filtering, thanks to Phil Hagelberg!
1245
+ * Added args argument to #run, takes ARGV from at_exit.
1246
+ * Added test name output if $DEBUG.
1247
+ * Added a refute (was deny) for every assert.
1248
+ * Added capture_io and a bunch of nice assertions from zentest.
1249
+ * Added deprecation mechanism for assert_no/not methods to test/unit/assertions.
1250
+ * Added pp output when available.
1251
+ * Added tests for all assertions. Pretty much maxed out coverage.
1252
+ * Added tests to verify consistency and good naming.
1253
+ * Aliased and deprecated all ugly assertions.
1254
+ * Cleaned out test/unit. Moved autorun there.
1255
+ * Code cleanup to make extensions easier. Thanks Chad!
1256
+ * Got spec args reversed in all but a couple assertions. Much more readable.
1257
+ * Improved error messages across the board. Adds your message to the default.
1258
+ * Moved into Mini namespace, renamed to Mini::Test and Mini::Spec.
1259
+ * Pulled the assertions into their own module...
1260
+ * Removed as much code as I could while still maintaining full functionality.
1261
+ * Moved filter_backtrace into MiniTest.
1262
+ * Removed MiniTest::Unit::run. Unnecessary.
1263
+ * Removed location_of_failure. Unnecessary.
1264
+ * Rewrote test/unit's filter_backtrace. Flog from 37.0 to 18.1
1265
+ * Removed assert_send. Google says it is never used.
1266
+ * Renamed MiniTest::Unit.autotest to #run.
1267
+ * Renamed deny to refute.
1268
+ * Rewrote some ugly/confusing default assertion messages.
1269
+ * assert_in_delta now defaults to 0.001 precision. Makes specs prettier.
1270
+
1271
+ * 9 bug fixes:
1272
+
1273
+ * Fixed assert_raises to raise outside of the inner-begin/rescue.
1274
+ * Fixed for ruby 1.9 and rubinius.
1275
+ * No longer exits 0 if exception in code PRE-test run causes early exit.
1276
+ * Removed implementors method list from mini/test.rb - too stale.
1277
+ * assert_nothing_raised takes a class as an arg. wtf? STUPID
1278
+ * ".EF" output is now unbuffered.
1279
+ * Bunch of changes to get working with rails... UGH.
1280
+ * Added stupid hacks to deal with rails not requiring their dependencies.
1281
+ * Now bitch loudly if someone defines one of my classes instead of requiring.
1282
+ * Fixed infect method to work better on 1.9.
1283
+ * Fixed all shadowed variable warnings in 1.9.
1284
+
1285
+ === 1.1.0 / 2007-11-08
1286
+
1287
+ * 4 major enhancements:
1288
+
1289
+ * Finished writing all missing assertions.
1290
+ * Output matches original test/unit.
1291
+ * Documented every method needed by language implementor.
1292
+ * Fully switched over to self-testing setup.
1293
+
1294
+ * 2 minor enhancements:
1295
+
1296
+ * Added deny (assert ! test), our favorite extension to test/unit.
1297
+ * Added .autotest and fairly complete unit tests. (thanks Chad for help here)
1298
+
1299
+ === 1.0.0 / 2006-10-30
1300
+
1301
+ * 1 major enhancement
1302
+
1303
+ * Birthday!
1304
+