Re: Test::Class weirdness

2002-10-10 Thread Adrian Howard
Hi all, On Thursday, October 10, 2002, at 05:04 pm, Tony Bowden wrote: [snip] > use Test::Class; > use UNIVERSAL::require; > > my @tests = qw( Example::Test Another::Test ); > foreach my $class (@tests) { > $class->require or die "Can't require $class"; > } > Test::Class-

Re: Test::Class weirdness

2002-10-10 Thread Adrian Howard
On Thursday, October 10, 2002, at 05:04 pm, Tony Bowden wrote: [snip] > I hate this sort of duplication, so I tried for a while to eliminate it, > mostly through an approach like: > > use Test::Class; > use UNIVERSAL::require; > > my @tests = qw( Example::Test Another::Test ); >

Test::Class weirdness

2002-10-10 Thread Tony Bowden
Test::Class helpfully has a shortcut to allow you to run the tests from multiple classes as if they were one test: If you want to run multiple test objects in a single script you can pass "runtests" a list of test objects ... Since you can pass "runtests" class names instead of objects th