http://www.pobox.com/~schwern/src/Test-Simple-0.60_02.tar.gz or http://svn.schwern.org/svn/Test-Simple/trunk or a CPAN near you.
This is an alpha release of Test::More and its underlying Test::Builder. The purpose of this release is to get people trying out the new Test::Builder::Module. This makes writing test modules even easier by providing an import() method like Test::More's. Now your module can set the plan without having to rely on Test::More. Here's an example which emulates the behavior of Test::Simple. In fact, its almost exactly Test::Simple's code. package Your::Module; my $CLASS = __PACKAGE__; use base 'Test::Builder::Module'; @EXPORT = qw(ok); sub ok ($;$) { my $tb = $CLASS->builder; return $tb->ok(@_); } 1; It also changes the way of getting the underlying Test::Builder object. Rather than grabbing at it directly via Test::Builder->new it is better to use Your::Module->builder. This allows future, planned changes in the behavior of the Test::Builder singleton (for example, you'll be able to change its behavior per class). Otherwise you can continue using the builder as you were before. Comments requested. Particularly requests for additional functionality and a better way to do import_extra(). 0.60_02 Tue Aug 9 00:27:41 PDT 2005 * Added Test::Builder::Module. - Minor Win32 testing nit in fail-more.t - Added no_diag() method to Test::Builder and changed Test::More's no_diag internals to use that. [rt.cpan.org 8655] * Deprecated no_diag() as an option to "use Test::More". Call the Test::Builder method instead. 0.60_01 Sun Jul 3 18:11:58 PDT 2005 - Moved the docs around a little to better group all the testing functions together. [rt.cpan.org 8388] * Added a BAIL_OUT() function to Test::More [rt.cpan.org 8381] - Changed Test::Builder->BAILOUT to BAIL_OUT to match other method's naming conventions. BAILOUT remains but is deprecated. * Changed the standard failure diagnostics to include the test name. [rt.cpan.org 12490] - is_deeply() was broken for overloaded objects in the top level in 0.59_01. [rt.cpan.org 13506] - String overloaded objects without an 'eq' or '==' method are now handled in cmp_ok() and is(). - cmp_ok() will now treat overloaded objects as numbers if the comparison operator is numeric. [rt.cpan.org 13156] - cmp_ok(), like() and unlike will now throw uninit warnings if their arguments are undefined. [rt.cpan.org 13155] - cmp_ok() will now throw warnings as if the comparison were run normally, for example cmp_ok(2, '==', 'foo') will warn about 'foo' not being numeric. Previously all warnings in the comparison were supressed. [rt.cpan.org 13155] - Tests will now report *both* the number of tests failed and if the wrong number of tests were run. Previously if tests failed and the wrong number were run it would only report the latter. [rt.cpan.org 13494] - Missing or extra tests are not considered failures for the purposes of calculating the exit code. Should there be no failures but the wrong number of tests the exit code will be 254. - Avoiding an unbalanced sort in eq_set() [bugs.perl.org 36354] - Documenting that eq_set() doesn't deal well with refs. - Clarified how is_deeply() compares a bit. * Once again working on 5.4.5. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern ...they shared one last kiss that left a bitter yet sweet taste in her mouth--kind of like throwing up after eating a junior mint. -- Dishonorable Mention, 2005 Bulwer-Lytton Fiction Contest by Tami Farmer