October 27, 2005 Two or Three Things I Learned ...

Manage Big Test Suites with Subdirectories

    t/12_makedefaults.t
    t/makedefaults/1201.t
    t/makedefaults/1202.t
    t/makedefaults/1203.t

o In Makefile.PL:

    WriteMakefile(
        ...
        PREREQ_PM => {
                        Test::More      => 0.44,
                        Getopt::Std     => 0,
                        File::Basename  => 0,
                        File::Path      => 0,
                    },
        test => { TESTS => join q{ }, map {glob} qw( t/*.t t/*/*.t ) },
    );


Home Last TOC Copyright © 2005 James E Keenan Prev Next