Subject: | Add ability to augment test descriptions |
I use Test::Class::Load to drive the testing, and I often have multiple
tests being run in each test method. This leads to lots of anonymous
looking output unless I personalize each error message. E.g.:
package TestClass0;
use base qw[ MyTestBase ];
sub test0 : Test(2) {
ok( 1, 'TestClass0::test0: check 1' );
ok( 1, 'TestClass0::test0: check 2' );
}
It'd be much easier if Test::Class could be configured to prefix the
output message with the name of the class & test method. There doesn't
seem to be any easy way of overriding any of the Test::Class methods to
do this. Perhaps adding a "munge_description" method which is called
with the method name and existing description and which returns a new
description? The caller could then override that and provide whatever
capabilities are required.
Thanks,
Diab