Skip Menu |

This queue is for tickets about the Test-Class CPAN distribution.

Report information
The Basics
Id: 17264
Status: resolved
Priority: 0/
Queue: Test-Class

Owner: Nobody in particular
Requestors: john [...]

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: (no value)

Subject: cannot test anonymous subs
Download (untitled) / with headers
text/plain 457b
Can't run tests on a class that is required at runtime. The code my $package = ''; 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.
Download (untitled) / with headers
text/plain 171b
You now get a much more sensible error message, plus some pointers in the docs on how you can load Test::Class-es dynamically. All in 0.19 - hitting CPAN now :-) adrian

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to