Subject: | cannot test anonymous subs |
Can't run tests on a class that is required at runtime. The code
my $package = 'MyTestPackage.pm';
require $package;
$package->runtests;
Will produce warnings "cannot test anonymous subs," but will not run any
tests.
Thoughts:
Looks like a problem with Attribute::Handlers.
A resolution will allow Test::Class to be incorporated into a testing
framework that iterates over a list of modules (say from a database of
directory) and runs the test.