In article <[EMAIL PROTECTED]>, Chris
Dolan <[EMAIL PROTECTED]> wrote:

> On Oct 3, 2006, at 11:13 AM, David Golden wrote:
> 
> > Given what you use, perhaps qr/AUTHOR_TEST/ is a good idea.
> 
> That's cool.  Then I could do C<if ($ENV{AUTHOR_TEST_CDOLAN}){ ... }>  
> in my .t files and just set that to 1 in my .cshrc for all time.

I do this with Test::Manifest. In the t/test_manifest file I list the
tests and the testing level after each test (with a default of 1)

   load.t
   pod.t 2
   pod_coverage.t 2
   prereq.t 3
   feature.t

I then set the environment variable TEST_LEVEL to the level I want. If
I set it to 2, it runs everything with that level and lower, so all the
tests with 2 and 1.

In a couple of modules, I even create the t/test_manifest dynamically.
I can distribute all the tests but only use some of them.

Reply via email to