--- Adrian Howard <[EMAIL PROTECTED]> wrote:
>
> On 8 Mar 2007, at 10:44, Ovid wrote:
> [snip]
> > I cannot easily use 'Test::NoWarnings' because that adds an extra
> > test,
> > thus forcing me to use 'no_plan' with one of my tests. Is there
> some
> > other way around this?
> [snip]
>
> Do something like:
>
> INIT { Test::Class->runtests( 'Foo', +1 ) }
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.
> > Also, not that when not using test names, the setup and teardown
> tests
> > are getting the names of the method they're testing, thus obscuring
>
> > tht
> > we're in setup and teardown.
>
> Good point. My logic was that the setup and teardown tests are
> logically part of the test so should have their name. I guess it
> would make sense to annotate them with the setup/teardown method
> name. Added to the todo list.
Thanks!
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/