Re: Minor Test::Class issues

2007-03-08 Thread Ovid
--- Adrian Howard <[EMAIL PROTECTED]> wrote: > 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 appropriate

Re: Minor Test::Class issues

2007-03-08 Thread Adrian Howard
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 treatme

Re: Minor Test::Class issues

2007-03-08 Thread Ovid
--- 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

Re: Minor Test::Class issues

2007-03-08 Thread Adrian Howard
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 ) } Also, not

Minor Test::Class issues

2007-03-08 Thread Ovid
So here's a minimal test class program (v0.24): package Foo; use Test::More; use Test::NoWarnings; use base 'Test::Class'; INIT { Test::Class->runtests } sub startup : Tests(startup => 1) { ok 1 } sub setup : Tests(setup => 1){ ok 1 } sub some_test : T