On 8 Mar 2007, at 11:17, Ovid wrote:
[snip]
How do I run an individual test class which inherits from
"My::Test::Class" and have the INIT block in "My::Test::Class"
dynamically determine which test class name to put there? That's
what's stumping me.
[snip]
Damn. I knew that asymmetric treatment of runtests and expected_tests
would come and bite me in the end. I'll have to ponder a decent fix.
Added to the to do list.
In the mean time if you don't mind poking a private method you can do:
INIT { Test::Class->runtests( Test::Class->_test_classes, +1 ) }
If you do mind you could always copy'n'paste the code out into your
subclass and rename appropriately. You'll just need _isa_class() and
_test_classes().
Cheers,
Adrian