perltestingmakemaker

How can I change the directory holding the test files in ExtUtils::Makemaker?


How can you change the default tests path in Makefile.PL from the default value t/*.t? There's an attribute mentioned in the documentation but it does not work. Anybody know how to that?


Solution

  • In Makefile.PL:

    WriteMakefile(
        test => { TESTS => 'tests/*.t'},
        ....
    

    Will make make test run the tests scripts in tests instead of t.