> I'd like test names to be more widespread, but I really don't want
> them mandatory.

If you really don't want to have test names, you can specify undef.  But
making them "required" (as in "before everything else") makes the API
easier to use for people who are doing things right (i.e. naming their
tests).

use Test::More::MandatoryName tests=>3;

sub ok {
   Test::More::ok(undef, @_);
}

ok($foo == $bar);
ok($baz < $quux);

can_ok('$foo loaded its methods from the XML', qw(foo bar baz can isa));

This setup is better than what Test::More does right now, since can_ok
could now accept a test name.

Regards,
Jonathan Rockway

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to