Where should I put common utility functions for Perl .t tests?
Posted
by zedoo
on Stack Overflow
See other posts from Stack Overflow
or by zedoo
Published on 2010-05-14T12:16:10Z
Indexed on
2010/05/14
23:14 UTC
Read the original article
Hit count: 205
I am getting started with Test::More, already have a few .t test scripts. Now I'd like to define a function that will only be used for the tests, but across different .t files. Where's the best place to put such a function? Define another .t without any tests and require
it where needed? (As a sidenote I use the module structure created by Module::Starter)
© Stack Overflow or respective owner