If you don't know what Test::Unit is, I've included an explanation
further down. For everyone else, here's some highlights from the
ChangeLog (you can read the whole thing at
http://www.*-*-*.com/ ):
* Added more output options to the console test runner.
* Changed Object#id calls to Object#__id__ to remove deprecation
warnings under 1.7.
* Did a little performance tuning.
* Fixed a problem in stack trace filtering in Error.filter.
* Added the ability to pick the runner when running automatically
(thanks to Eivind Eklund).
* Fixed debugging support in unit.rb.
* Made the failure caused by running an empty suite clear, consistent,
and changeable.
* !Removed the return value from Assertions#assert_match.
* Modified tests to make sure all assertions are returning nil unless
they're explicitly supposed to do something else.
* !Made TestCase#initialize throw :invalid_test if the test method
specified does not exist (this is in addition to the arity check that
was already in place).
* !Changed #assert_match to use #=~ instead of #match; it can now
handle strings as patterns, too.
* Fixed warnings under 1.8 caused by not using a 0 before the decimal
point of floats.
Notes:
* Test::Unit has been imported in to ruby 1.8. If you're running
against the latest CVS, you shouldn't need to download this!
README:
Unit testing is making waves all over the place, largely due to the fact
that it is a core practice of XP. While XP is great, unit testing has
been around for a long time and has always been a good idea. One of the
keys to good unit testing, though, is not just writing tests, but having
tests. What's the difference? Well, if you just _write_ a test and throw
it away, you have no guarantee that something won't change later which
breaks your code. If, on the other hand, you _have_ tests (obviously you
have to write them first), and run them as often as possible, you slowly
build up a wall of things that cannot break without you immediately
knowing about it. This is when unit testing hits its peak usefulness.
Enter Test::Unit, a framework for unit testing in Ruby, helping you to
design, debug and evaluate your code by making it easy to write and have
tests for it.
Grab the fun at http://www.*-*-*.com/
Happy testing,
Nathaniel
<:((><
+ - -
| RoleModel Software, Inc.
| EQUIP VI