|Don't ask to ask, just ask|
Grouping testsby forkboy (Sexton)
|on Sep 18, 2007 at 04:37 UTC||Need Help??|
forkboy has asked for the
wisdom of the Perl Monks concerning the following question:
I've got a very large internal project (many hundreds of packages) I'm trying to come up with a nice method of grouping tests together to allow a "group" of tests to be run, rather than all the tests.
I was thinking something like, laying out the tests as
t/001_first_global_test.t t/001_second_global_test.t t/group1/001_first_group1_test.t t/group2/001_first_group2_test.t t/group2/002_second_group2_test.t
then being able to do
make test group1
and just have t/group1/001_first_group1_test.t run or
make test all
and running every test
Is there a standard way for doing this? Currently how we handle it is the project is broken up into hundreds of separate (h2xs created) modules.. which is quite a pain to manage, I'd really like to bring them all together as 1 module with all the packages in it.