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