1 minor enhancement:
Extended documentation for Mock#expect for multiple calls to mock object. (insti)
2 bug fixes:
Finished off missing doco.
Fixed verbose output on parallelize_me! classes. (chanks)
1 minor enhancement:
Added suggestion in minitest/hell to install minitest/proveit.
7 bug fixes:
Expand MT6 to Minitest 6. (xaviershay)
Fixed location of assert_send deprecation. (rab)
Fixed location of nil assert_equal deprecation to work with expectations. (jeremyevans)
Fixed minitest/hell to use parallelize_me! (azul)
Made deprecation use warn so -W0 will silence it.
Workaround for rdoc nodoc generation bug that totally f'd up minitest doco. (Paxa)
Write aggregated_results directly to the IO
object to avoid mixed encoding errors. (tenderlove)
1 bug fix:
Added a hack/kludge to deal with missing prerecord on reporters that aren't properly subclassing AbstractReporter (I'm looking at you minitest-reporters)
1 major enhancement:
Deprecated ruby 1.8, 1.9, possibly 2.0, assert_send, & old MiniTest namespace.
3 minor enhancements:
Warn if assert_equal expects a nil. This will fail in minitest 6+. (tenderlove)
Added AbstractReporter#prerecord and extended ProgressReporter and CompositeReporter to use it.
Minor optimization: remove runnables with no runnable methods before run.
3 bug fixes:
Fix assert_throw rescuing any NameError
and ArgumentError
. (waldyr)
Clean up (most of the) last remaining vestiges of minitest/unit.
2.4: removed deprecation warnings when referring to Fixnum.
2 bug fixes:
Re-release to refresh gem certificate signing. ugh.
Fixed hoe/minitest to not augment load path if we're actually testing minitest.
8 minor enhancements:
Added Minitest.info_signal accessors to customize signal for test run info. (nate)
Added assert_mock to make it more clear that you're testing w/ them.
Added negative filter by test name. (utilum)
Added warning to README that 1.8 and 1.9 support will be dropped in minitest 6.
Automatically activate minitest/hell if $MT_HELL is defined.
Improved default error messages for assert and refute. (bhenderson)
minitest/hell now tries to require minitest/proveit
mu_pp for strings prints out non-standard encodings to improve assert_equal diffs.
1 bug fix:
Removed Interrupt
from PASSTHROUGH_EXCEPTIONS (already handled). (waldyr)
2 bug fixes:
Re-release to refresh gem certificate signing. ugh.
Fixed hoe/minitest to not augment load path if we're actually testing minitest.
1 bug fix:
Allow Minitest::Assertion to pass through assert_raises so inner failures are dealt with first.
1 minor enhancement:
Added extra note about mocks and threads to readme. (zamith)
1 bug fix:
Fixed bug in Mock#verify. (pithub/zamith)
1 bug fix:
Fixed using parallelize_me! and capture_io (or any locking io). (arlt/tenderlove)
1 minor enhancement:
Refactor assert_raises to be cleaner and to pass SystemExit
and SignalException
. (bhenderson)
2 minor enhancements:
Add optional delegation mechanism to extend object with a mock. (zamith)
Return early if there are no filtered methods. (jeremyevans)
1 bug fix:
Don't extend io with pride if io is not a tty. (toy)
1 major enhancement:
assert_raises now matches subclasses of the expected exception types. (jeremyevans)
3 minor enhancements:
Added :block type for minitest/spec's infect_an_assertion. (jeremyevans)
Inline verification error messages in minitest/mock for GC
performance. (zamith)
assert_raises defaults to RuntimeError
if not specified. (jeremyevans)
4 bug fixes:
Added 'class' to minitest/mock's overridden_methods list. (zamith)
Added file/line to infect_an_assertion's class_eval call. (jeremyevans)
Cleared UnexpectedError's mesg w/ generic string.
Fixed non-proc-oriented expectations when used on proc target. (jeremyevans)
2 bug fixes:
Added Minitest.clock_time and switched all Time.now
to it. (tenderlove)
Moved Minitest::Expectations#_ into Minitest::Spec::DSL.
4 major enhancements:
Added Minitest::Expectation value monad.
Added Minitest::Expectations#_ that returns an Expectation. Aliased to value.
All expectations are added to Minitest::Expectation.
At some point, the methods on Object
will be deprecated and then removed.
4 minor enhancements:
Added a note about bundle exec pitfall in ruby 2.2+. (searls)
Lazily start the parallel executor. (tenderlove)
Make mocks more debugger-friendly (edward)
Print out the current test run on interrupt. (riffraff)
3 bug fixes:
Fix failing test under Windows. (kimhmadsen)
Record mocked calls before they happen so mocks can raise exceptions easier (tho I'm not a fan). (corecode)
Tried to clarify mocks vs stubs terminology better. (kkirsche)
1 bug fix:
Fixed doco problems. (zzak)
1 minor enhancement:
Allow seed to be given via ENV
for rake test loader sadness: eg rake SEED=42.
2 bug fixes:
Clarified requirements for ruby are now 1.8.7 or better.
Force encode error output in case mal-encoded exception is raised. (jasonrclark)
2 minor enhancements:
Extract teardown method list.
Thanks to minitest-gcstats got a 5-10% speedup via reduced GC
!
1 bug fix:
Fixed specs hidden by nesting/ordering bug (blowmage/apotonick)
2 minor enhancements:
Kernel#describe extended to splat additional_desc.
Spec#spec_type extended to take a splat of additional items, passed to matcher procs.
1 bug fix:
minitest/spec should require minitest/test, not minitest/unit. (doudou)
1 minor enhancement:
Spit and polish (mostly spit).
1 minor enhancement:
Test classes are randomized before running. (judofyr)
1 bug fix:
Fixed using expectations w/ DSL in Test class w/o describe. (blowmage+others)
1 bug fix:
Fixed doco on Assertions.assertions. (xaviershay)
1 minor enhancement:
Modified verbage on bad 'let' names to be more helpful. (Archytaus)
1 bug fix:
Fixed 2 cases still using MiniTest. (mikesea)
1 minor enhancement:
Mocked methods can take a block to verify state. Seattle.rb 12 bday present from ernie! Thanks!!
1 bug fix:
Fixed Spec#let check to allow overriding of other lets. (mvz)
1 minor enhancement:
Spec#let raises ArgumentError
if you override any instance method (except subject). (rynr)
1 bug fix:
Fixed up benchmark spec doco and added a test to demonstrate. (bhenderson)
1 bug fix:
Properly deal with horrible mix of runtime load errors + other at_exit handlers. (dougo/chqr)
1 minor enhancement:
Change expectations to allow calling most on procs (but not calling the proc). (bhenderson+others)
1 minor enhancement:
Use a Queue
for scheduling parallel tests. (tenderlove)
1 bug fix:
Fixed misspelling in doco. (amatsuda)
1 bug fix:
Fixed siginfo handler by rearranging reporters and fixing to_s. (tenderlove)
2 minor enhancements:
Added clarification about the use of thread local variables in expectations. (jemc)
Added extra message about skipped tests, if any. Disable globally with $MT_NO_SKIP_MSG.
2 bug fixes:
Only require minitest, not minitest/autorun in pride_plugin. (judofyr)
Require rubygems in load_plugins in case you're not using minitest/autorun.
3 minor enhancements:
Allow stub to pass args to blocks. (swindsor)
Improved warning message about minitest/autorun to address 1.9's minitest/autorun.
Made minitest/test require minitest as needed. For lib writers. (erikh)
1 bug fix:
Fixed missing require in minitest/test. (erikh)
2 bug fixes:
Fix Spec#describe_stack to be thread local.
Fix multithreaded test failures by defining Time
local to mock test namespace
6 bug fixes:
DOH! Fixed the rest of the new casing on Minitest. (splattael)
Fixed typo on minitest/mock rdoc. (mrgilman/guiceolin)
Make Spec::DSL.describe_stack thread local to avoid failing on my own tests.
Make a fake Time.now
local to the tests so they won't interfere with real reporter timings.
Make everything mockable by wrapping all 'special' methods in a smarter wrapper. (bestie)
Raise ArgumentError
if let name starts with 'test'. (johnmaxwell)
5 minor enhancements:
Added AbstractReporter, defining required Reporter API to quack properly.
Added doco for writing reporters.
Refactored Reporter into ProgressReporter and SummaryReporter. (idea: phiggins, code:me+scotch)
Refactored SummaryReporter pushing up to StatisticsReporter. (phiggins)
Removed Reporter#run_and_report… cleaner, but doesn't “fit” in the API.
4 minor enhancements:
Added Runnable.with_info_handler and Runnable.on_signal.
Moved io.sync restore to Reporter#run_and_report.
Refactored inner loop of Reporter#report to to_s. Callable for status updates.
Restored MT4's mid-run report (^t). (tenderlove).
3 bug fixes:
Gem.find_files is smarter than I remember… cause I wrote it that way. sigh I'm getting old.
Pride wasn't doing puts through its io. (tmiller/tenderlove)
Replaced Runnable#dup and Test#dup with marshal_dump/load. Too many problems cropping up on untested rails code. (tenderlove/rubys)
2 bug fixes:
Documented Assertions' need for @assertions to be defined by the includer.
Only load one plugin version per name. Tries for latest.
Oh god… here we go…
Minitest 5:
4 deaths in the family:
MiniTest.runner is dead. No more manager objects.
MiniTest::Unit#record is dead. Use a Reporter instance instead.
MiniTest::Unit.run* is dead. Runnable things are responsible for their own runs.
MiniTest::Unit.output is dead. No more centralized IO
.
12 major (oft incompatible) changes:
Renamed MiniTest to Minitest. Your pinkies will thank me. (aliased to MiniTest)
Removed MiniTest::Unit entirely. No more manager objects.
Added Minitest::Runnable. Everything minitest can run subclasses this.
Renamed MiniTest::Unit::TestCase to Minitest::Test (subclassing Runnable).
Added Minitest::Benchmark.
Your benchmarks need to move to their own subclass.
Benchmarks using the spec DSL have to have “Bench” somewhere in their describe.
MiniTest::Unit.after_tests moved to Minitest.after_tests
MiniTest::Unit.autorun is now Minitest.autorun. Just require minitest/autorun pls.
Removed ParallelEach#grep since it isn't used anywhere.
Renamed Runnable#__name__ to Runnable#name (but uses @NAME internally).
Runnable#run needs to return self. Allows for swapping of results as needed.
8 minor moves:
Moved Assertions module to minitest/assertions.rb
Moved Expectations module to minitest/expectations.rb
Moved Test to minitest/test.rb
Moved everything else in minitest/unit.rb to minitest.rb
minitest/unit.rb is now just a small (user-test only) compatibility layer.
Moved most of minitest/pride into minitest/pride_plugin.
minitest/pride now just activates pride.
Moved ParallelEach under Minitest.
9 additions:
Added a plugin system that can extend command-line options.
Added Minitest.extensions.
Added Minitest.reporter (only available during startup).
Added Minitest.run(args). This is the very top of any Minitest run.
Added Minitest::Reporter. Everything minitest can report goes through here.
Minitest.reporter is a composite so you can add your own.
Added Minitest::CompositeReporter. Much easier to extend with your own reporters.
Added UnexpectedError, an Assertion subclass, to wrap up errors.
Minitest::Test#run is now freakin' beautiful. 47 -> 17 loc
11 other:
Removed Object.infect_with_assertions (it was already dead code).
Runnables are responsible for knowing their result_code (eg “.” or “F”).
Minitest.autorun now returns boolean, not exit code.
Added FAQ entry for extending via modules. (phiggins)
Implement Runnable#dup to cleanse state back to test results. Helps with serialization. pair:tenderlove
Moved ParallelEach under Minitest.
Runnable#run needs to return self. Allows for swapping of results as needed.
Minitest.init_plugins passes down options.
Minitest.load_plugins only loads once.
Fixed minitest/pride to work with rake test loader again. (tmiller)
Added count/size to ParallelEach to fix use w/in stdlib's test/unit. :( (btaitelb)
5 voodoo:
Removed mutex from minitest.rb (phiggins)
Removed mutex from test.rb (phiggins)
Removed Minitest::Reporter.synchronize (phiggins)
Removed Minitest::Test.synchronize (phiggins)
Upon loading minitest/parallel_each, record, capture_io and capture_subprocess_io are doped with synchronization code. (phiggins)
This is probably the last release of the 4.x series. It will be merged to ruby and will be put into maintenance mode there.
I'm not set in stone on this, but at this point further development of minitest (5+) will be gem-only. It is just too hard to work w/in ruby-core w/ test-unit compatibility holding minitest development back.
2 minor enhancements:
Added count/size to ParallelEach to fix use w/in stdlib's test/unit. :( (btaitelb)
Allow disabling of info_signal handler in runner. (erikh)
1 bug fix:
Reverted stubbing of module methods change. Stub the user, not the impl. (ab9/tyabe)
2 bug fixes:
Fixed inconsistency in refute_in_delta/epsilon. I double negatived my logic. (nettsundere)
Fixed stubbing of module methods (eg Kernel#sleep
). (steveklabnik)
1 minor enhancement:
Added FAQ section to README
1 bug fix:
Fixed bug where guard runs tests bypassing minitest/autorun and an ivar isn't set right. (darrencauthon)
1 major enhancement:
Refactored MiniTest::Spec into MiniTest::Spec::DSL.
1 bug fix:
Removed $DEBUG handler that detected when test/unit and minitest were both loaded. (tenderlove)
1 minor enhancement:
Change error output to match Class#method
, making it easier to use -n filter.
1 bug fix:
Fixed an option processing bug caused by test/unit's irresponsibly convoluted code. (floehopper)
3 major enhancements:
Removed ::reset_setup_teardown_hooks
Removed the long deprecated assert_block
Removed the long deprecated lifecycle hooks: add_(setup|teardown)_hook
1 minor enhancement:
Allow filtering tests by suite name as well as test name. (lazyatom)
2 bug fixes:
Made hex handling (eg object_ids) in mu_pp_for_diff more specific. (maxim)
nodoc top-level module. (zzak)
1 major enhancement:
Rearranged minitest/unit.rb so NO parallelization code is loaded/used until you opt-in.
4 minor enhancements:
Added TestCase#skipped? for teardown guards
Added maglev? guard
Document that record can be sent twice if teardown fails or errors (randycoulman)
Errors in teardown are now recorded. (randycoulman)
3 bug fixes:
Added hacks and skips to get clean test runs on maglev
Modified float tests for maglev float output differences. Not sure this is right. Not sure I care.
Test for existance of diff.exe instead of assuming they have devkit. (blowmage/Cumbayah)
3 minor enhancements:
Added fit_logarithic and assert_performance_logarithmic. (ktheory)
Merge processed options so others can mess with defaults. (tenderlove)
TestCase#message can now take another proc to defer custom message cost. (ordinaryzelig/bhenderson)
1 bug fix:
TestCase#passed? now true if test is skipped. (qanhd)
1 bug fix:
Updated information about stubbing. (daviddavis)
1 minor enhancement:
Improved assert_equals error message to point you at #== of member objects. (kcurtin)
1 bug fix:
Moved test_children to serial testcase to prevent random failures.
4 minor enhancements:
Allow autorun to run even if loaded with other test libs that call exit. (sunaku)
Do not include Expectations in Object
if $MT_NO_EXPECTATIONS is set (experimental?)
Gave some much needed love to assert_raises.
Mock#expect can take a block to custom-validate args. (gmoothart)
4 major enhancements:
Added minitest/hell - run all your tests through the ringer!
Added support for :parallel test_order to run test cases in parallel.
Removed last_error and refactored runner code to be threadsafe.
_run_suites now runs suites in parallel if they opt-in.
4 minor enhancements:
Added TestCase#synchronize
Added TestCase.make_my_diffs_pretty!
Added TestCase.parallelize_me!
Lock on capture_io for thread safety (tenderlove)
2 minor enhancements:
Added skip example to readme. (dissolved)
Extracted backtrace filter to object. (tenderlove)
1 bug fix:
OMG I'm so dumb. Fixed access to deprecated hook class methods. I hate ruby modules. (route)
1 major enhancement:
The names of a privately-used undocumented constants are Super Important™.
1 minor enhancement:
Support stubbing methods that would be handled via method_missing. (jhsu)
3 bug fixes:
Add include_private param to MiniTest::Mock#respond_to? (rf-)
Fixed use of minitest/pride with –help. (zw963)
Made 'No visible difference.' message more clear. (ckrailo)
1 minor enhancement:
Added capture_subprocess_io. (route)
2 minor enhancements:
assert_output can now take regexps for expected values. (suggested by stomar)
Clarified that ruby 1.9/2.0's phony gems cause serious confusion for rubygems.
1 major enhancement:
Deprecated add_(setup|teardown)_hook in favor of (before|after)_(setup|teardown) [2013-01-01]
4 minor enhancements:
Refactored deprecated hook system into a module.
Refactored lifecycle hooks into a module.
Removed after_setup/before_teardown + run_X_hooks from Spec.
Spec#before/after now do a simple define_method and call super. DUR.
2 bug fixes:
Fixed passed? when used against a test that called flunk. (floehopper)
Fixed rdoc bug preventing doco for some expectations. (stomar).
1 minor enhancement:
Stubs now yield self. (peterhellberg)
1 bug fix:
Fixed verbose test that only fails when run in verbose mode. mmmm irony.
2 minor enhancements:
Removed LONG deprecated Unit.out accessor
Removed generated method name munging from minitest/spec. (ordinaryzelig/tenderlove)
1 bug fix:
I'm a dumbass and refactored into Mock#call. Renamed to #__call so you can mock call. (mschuerig)
3 major enhancements:
Added Object#stub (in minitest/mock.rb).
Mock#expect mocks are used in the order they're given.
Mock#verify now strictly compares against expect calls.
3 minor enhancements:
Added caller to deprecation message.
Mock error messages are much prettier.
Removed String
check for RHS of assert/refute_match. This lets to_str work properly.
1 bug fix:
Support drive letter on Windows. Patch provided from MRI by Usaku NAKAMURA. (ayumin)
1 minor enhancement:
Added ruby releases to History.txt to make it easier to see what you're missing
1 bug fix:
Rolled my own deprecate msg to allow MT to work with rubygems < 1.7
4 minor enhancements:
::it returns test method name (wojtekmach)
Added record method to runner so runner subclasses can cleanly gather data.
Added Minitest alias for MiniTest because even I forget.
Deprecated assert_block!! Yay!!!
1 bug fix:
Fixed warning in i_suck_and_my_tests_are_order_dependent! (phiggins)
2 minor enhancements:
Updated known extensions
You got your unicode in my tests! You got your tests in my unicode! (fl00r)
1 bug fix:
Fixed MiniTest::Mock example in the readme. (conradwt)
2 bug fixes:
Clarified that assert_raises returns the exception for further testing
Fixed assert_in_epsilon when both args are negative. (tamc)
1 minor enhancement:
Display failures/errors on SIGINFO. (tenderlove)
1 bug fix:
Fixed MiniTest::Unit.after_tests for Ruby 1.9.3. (ysbaddaden)
3 bug fixes:
Improved description for –name argument. (drd)
Ensure Mock#expect's expected args is an Array
. (mperham)
Ensure Mock#verify verifies multiple expects of the same method. (chastell)
2 minor enhancements:
Added before / after hooks for setup and teardown. (tenderlove)
Pushed run_setup_hooks down to Spec. (tenderlove)
1 bug fix:
Fixed stupid 1.9 path handling grumble grumble. (graaff)
3 minor enhancements:
Added specs for must/wont be_empty/respond_to/be_kind_of and others.
Added tests for assert/refute predicate.
Split minitest/excludes.rb out to its own gem.
1 bug fix:
Fixed must_be_empty and wont_be_empty argument handling. (mrsimo)
4 minor enhancements:
Added a ton of tests on spec error message output.
Cleaned up consistency of msg handling on unary expectations.
Improved error messages on assert/refute_in_delta.
infect_an_assertion no longer checks arity and better handles args.
1 bug fix:
Fixed error message on specs when 2+ args and custom message provided. (chastell)
4 minor enhancements:
Added TestCase.exclude and load_excludes for programmatic filtering of tests.
Added guard methods so you can cleanly skip based on platform/impl
Holy crap! 100% doco! `rdoc -C` ftw
Switch assert_output to test stderr before stdout to possibly improve debugging
1 bug fix:
Ugh. 1.9's test/unit violates my internals. Added const_missing.
2 minor enhancements:
Add a method so that code can be run around a particular test case (tenderlove)
Turn off backtrace filtering if we're running inside a ruby checkout. (drbrain)
2 bug fixes:
Fixed 2 typos and 2 doc glitches. (splattael)
Remove unused block arguments to avoid creating Proc
objects. (k-tsj)
2 minor enhancements:
Include failed values in the expected arg output in MockExpectationError. (nono)
Make minitest/pride work with other 256 color capable terms. (sunaku)
2 bug fixes:
Clarified the documentation of minitest/benchmark (eregon)
Fixed using expectations in regular unit tests. (sunaku)
1 minor enhancement:
Added link to vim bundle. (sunaku)
2 bug fixes:
Force gem activation in hoe minitest plugin
Support RUBY_VERSION='2.0.0' (nagachika)
2 bug fixes:
Alias Spec.name from Spec.to_s so it works when @name is nil (nathany)
Fixed assert and refute_operator where second object has a bad == method.
2 minor enhancements:
Added specify alias for it and made desc optional.
Spec#must_be and wont_be can be used with predicates (metaskills)
1 bug fix:
Fixed Mock.respond_to?(var) to work with strings. (holli)
2 minor enhancements:
Added gem activation for minitest in minitest/autoload to help out 1.9 users
Extended Spec.register_spec_type to allow for procs instead of just regexps.
4 minor enhancements:
Added 2 more arguments against rspec: let & subject in 9 loc! (emmanuel/luis)
Added TestCase.i_suck_and_my_tests_are_order_dependent!
Extended describe to take an optional method name (2 line change!). (emmanuel)
Refactored and extended minitest/pride to do full 256 color support. (lolcat)
1 bug fix:
Doc fixes. (chastell)
4 minor enhancements:
Added simple examples for all expectations.
Improved Mock error output when args mismatch.
Moved all expectations from Object
to MiniTest::Expectations.
infect_with_assertions has been removed due to excessive clever
4 bug fixes:
Fix Assertions#mu_pp to deal with immutable encoded strings. (ferrous26)
Fix minitest/pride for MacRuby (ferrous26)
Made error output less fancy so it is more readable
Mock shouldn't undef === and inspect. (dgraham)
1 bug fix:
Fixed minitest hoe plugin to be a spermy dep and not depend on itself.
5 minor enhancements:
Add setup and teardown hooks to MiniTest::TestCase. (phiggins)
Added nicer error messages for MiniTest::Mock. (phiggins)
Allow for less specific expected arguments in Mock. (bhenderson/phiggins)
Made MiniTest::Mock a blank slate. (phiggins)
Refactored minitest/spec to use the hooks instead of define_inheritable_method. (phiggins)
2 bug fixes:
Fixed TestCase's inherited hook. (dchelimsky/phiggins/jamis, the 'good' neighbor)
MiniTest::Assertions#refute_empty should use mu_pp in the default message. (whatthejeff)
2 bug fixes:
Got rid of the trailing period in message for assert_equal. (tenderlove)
Windows needs more flushing. (Akio Tajima)
1 bug fix:
My ONE non-rubygems-using minitest user goes to Seattle.rb!
6 minor enhancements:
assert_equal (and must_equal) now tries to diff output where it makes sense.
Added Assertions#diff(exp, act) to be used by assert_equal.
Added Assertions#mu_pp_for_diff
Added Assertions.diff and diff=
Moved minitest hoe-plugin from hoe-seattlerb. (erikh)
Skipped tests only output details in verbose mode. (tenderlove+zenspider=xoxo)
5 minor enhancements:
Added MiniTest::Spec.register_spec_type(matcher, klass) and spec_type(desc)
Added ability for specs to share code via subclassing of Spec. (metaskills)
Clarified (or tried to) bench_performance_linear's use of threshold.
MiniTest::Unit.runner=(runner) provides an easy way of creating custom test runners for specialized needs. (justinweiss)
Reverse order of inheritance in teardowns of specs. (deepfryed)
3 bug fixes:
FINALLY fixed problems of inheriting specs in describe/it/describe scenario. (MGPalmer)
Fixed a new warning in 1.9.3.
Fixed assert_block's message handling. (nobu)
1 minor enhancement:
Completed doco on minitest/benchmark for specs.
1 bug fix:
Benchmarks in specs that didn't call bench_range would die. (zzak).
4 minor enhancements:
Do not filter backtrace if $DEBUG
Exit autorun via nested at_exit handler, in case other libs call exit
Make options accesor lazy.
Split printing of test name and its time. (nurse)
1 bug fix:
Fix bug when ^T is hit before runner start
3 major enhancements:
Added minitest/benchmark! Assert your performance! YAY!
Refactored runner to allow for more extensibility. See minitest/benchmark.
This makes the runner backwards incompatible in some ways!
9 minor enhancements:
Added MiniTest::Unit.after_tests { … }
Improved output by adding test rates and a more sortable verbose format
Improved readme based on feedback from others
Added io method to TestCase. If used, it'll supplant '.EF' output.
Refactored IO
in MiniTest::Unit.
Refactored _run_anything to _run_suite to make it easier to wrap (ngauthier)
Spec class names are now the unmunged descriptions (btakita)
YAY for not having redundant rdoc/readmes!
Help output is now generated from the flags you passed straight up.
4 bug fixes:
Fixed scoping issue on minitest/mock (srbaker/prosperity)
Fixed some of the assertion default messages
Fixes autorun when on windows with ruby install on different drive (larsch)
Fixed rdoc output bug in spec.rb
3 bug fixes:
Fixed doco for expectations and Spec.
Fixed test_capture_io on 1.9.3+ (sora_h)
assert_raises now lets MiniTest::Skip through. (shyouhei)
1 bug fix:
1.9.2 fixes for spec tests
5 minor enhancements:
Added assert_output (mapped to must_output).
Added assert_silent (mapped to must_be_silent).
Added examples to readme (Mike Dalessio)
Added options output at the top of the run, for fatal run debugging (tenderlove)
Spec's describe method returns created class
10 minor enhancements:
Added –seed argument so you can reproduce a random order for debugging.
Added documentation for assertions
Added more rdoc and tons of :nodoc:
Added output to give you all the options you need to reproduce that run.
Added proper argument parsing to minitest.
Added unique serial # to spec names so order can be preserved (needs tests). (phrogz)
Empty 'it' fails with default msg. (phrogz)
Remove previous method on expect to remove 1.9 warnings
Spec#it is now order-proof wrt subclasses/nested describes.
assert_same error message now reports in decimal, eg: oid=123. (mattkent)
2 bug fixes:
Fixed message on refute_same to be consistent with assert_same.
Fixed method randomization to be stable for testing.
4 minor enhancements:
Added ability to specify what assertions should have their args flipped.
Don't flip arguments on *include and *respond_to assertions.
Refactored Module.infect_an_assertion from Module.infect_with_assertions.
before/after :all now bitches and acts like :each
3 bug fixes:
Nested describes now map to nested test classes to avoid namespace collision.
Using undef_method instead of remove_method to clean out inherited specs.
assert_raises was ignoring passed in message.
1 bug fix:
Fixed info handler for systems that don't have siginfo.
1 major enhancement:
Handle ^C and other fatal exceptions by failing
1 minor enhancement:
Added something to catch mixed use of test/unit and minitest if $DEBUG
1 bug fix:
Added SIGINFO handler for finding slow tests without verbose
5 minor enhancement:
Added clarification doco.
Added specs and mocks to autorun.
Changed spec test class creation to be non-destructive.
Updated rakefile for new hoe capabilities.
describes are nestable (via subclass). before/after/def inherits, specs don't.
3 bug fixes:
Fixed location on must/wont.
Switched to __name__ to avoid common ivar name.
Fixed indentation in test file (1.9).
1 minor enhancement:
Added miniunit/autorun.rb as replacement for test/unit.rb's autorun.
16 bug fixes:
1.9 test fixes.
Bug fixes from nobu and akira for really odd scenarios. They run ruby funny.
Fixed (assert|refute)_match's argument order.
Fixed LocalJumpError
in autorun if exception thrown before at_exit.
Fixed assert_in_delta (should be >=, not >).
Fixed assert_raises to match Modules.
Fixed capture_io to not dup IOs.
Fixed indentation of capture_io for ruby 1.9 warning.
Fixed location to deal better with custom assertions and load paths. (Yuki)
Fixed order of (must|wont)_include in MiniTest::Spec.
Fixed skip's backtrace.
Got arg order wrong in *_match in tests, message wrong as a result.
Made describe private. For some reason I thought that an attribute of Kernel.
Removed disable_autorun method, added autorun.rb instead.
assert_match escapes if passed string for pattern.
instance_of? is different from ===, use instance_of.
2 major enhancements:
renamed to minitest and pulled out test/unit compatibility.
mini/test.rb is now minitest/unit.rb, everything else maps directly.
12 minor enhancements:
assert_match now checks that act can call =~ and converts exp to a regexp only if needed.
Added assert_send… seems useless to me tho.
message now forces to string… ruby-core likes to pass classes and arrays :(
Added -v handling and switched to @verbose from $DEBUG.
Verbose output now includes test class name and adds a sortable running time!
Switched message generation into procs for message deferment.
Added skip and renamed fail to flunk.
Improved output failure messages for assert_instance_of, assert_kind_of
Improved output for assert_respond_to, assert_same.
at_exit now exits false instead of errors+failures.
Made the tests happier and more readable imhfo.
Switched index(s) == 0 to rindex(s, 0) on nobu's suggestion. Faster.
5 bug fixes:
1.9: Added encoding normalization in mu_pp.
1.9: Fixed backtrace filtering (BTs are expanded now)
Added back exception_details to assert_raises. DOH.
Fixed shadowed variable in mock.rb
Fixed stupid muscle memory message bug in assert_send.
7 minor enhancements:
Added deprecations everywhere in test/unit.
Added test_order to TestCase. :random on mini, :sorted on test/unit (for now).
Big cleanup in test/unit for rails. Thanks Jeremy Kemper!
Minor readability cleanup.
Pushed setup/run/teardown down to testcase allowing specialized testcases.
Removed pp. Tests run 2x faster. :/
Renamed deprecation methods and moved to test/unit/deprecate.rb.
2 major enhancements:
Added Mini::Spec.
Added Mini::Mock. Thanks Steven Baker!!
23 minor enhancements:
Added bin/use_miniunit to make it easy to test out miniunit.
Added -n filtering, thanks to Phil Hagelberg!
Added args argument to run, takes ARGV from at_exit.
Added test name output if $DEBUG.
Added a refute (was deny) for every assert.
Added capture_io and a bunch of nice assertions from zentest.
Added deprecation mechanism for assert_no/not methods to test/unit/assertions.
Added pp output when available.
Added tests for all assertions. Pretty much maxed out coverage.
Added tests to verify consistency and good naming.
Aliased and deprecated all ugly assertions.
Cleaned out test/unit. Moved autorun there.
Code cleanup to make extensions easier. Thanks Chad!
Got spec args reversed in all but a couple assertions. Much more readable.
Improved error messages across the board. Adds your message to the default.
Moved into Mini namespace, renamed to Mini::Test and Mini::Spec.
Pulled the assertions into their own module…
Removed as much code as I could while still maintaining full functionality.
Moved filter_backtrace into MiniTest.
Removed MiniTest::Unit::run. Unnecessary.
Removed location_of_failure. Unnecessary.
Rewrote test/unit's filter_backtrace. Flog from 37.0 to 18.1
Removed assert_send. Google says it is never used.
Renamed MiniTest::Unit.autotest to run.
Renamed deny to refute.
Rewrote some ugly/confusing default assertion messages.
assert_in_delta now defaults to 0.001 precision. Makes specs prettier.
9 bug fixes:
Fixed assert_raises to raise outside of the inner-begin/rescue.
Fixed for ruby 1.9 and rubinius.
No longer exits 0 if exception in code PRE-test run causes early exit.
Removed implementors method list from mini/test.rb - too stale.
assert_nothing_raised takes a class as an arg. wtf? STUPID
“.EF” output is now unbuffered.
Bunch of changes to get working with rails… UGH.
Added stupid hacks to deal with rails not requiring their dependencies.
Now bitch loudly if someone defines one of my classes instead of requiring.
Fixed infect method to work better on 1.9.
Fixed all shadowed variable warnings in 1.9.
4 major enhancements:
Finished writing all missing assertions.
Output matches original test/unit.
Documented every method needed by language implementor.
Fully switched over to self-testing setup.
2 minor enhancements:
Added deny (assert ! test), our favorite extension to test/unit.
Added .autotest and fairly complete unit tests. (thanks Chad for help here)
1 major enhancement
Birthday!