On Thu, Nov 13, 2003 at 07:12:01PM +1100, Andrew Savige wrote: > Which model should I follow? Or are there better models out there?
Well, since you're not a core module you don't have to worry about the PERL_CORE stuff. So just put your .pm file somewhere under t and use lib. I use t/lib so the top level t/ directory doesn't get cluttered (and for compatibility with the Perl core which may be important later for A::T). > Anyway, the current 02_methods.t is embedded below; any advice on > how it could be improved or refactored is most welcome! (I know it > has a bug in that it does not skip the correct number of tests). In addition to pulling out the functions, you probably want to break this rather large test file out into several scripts. Those "### here is what the block below does" comments are a good guide. If some sort of setup is needed for the tests to run you might want to put that into a module as well (look at MakeMaker::Test::Setup::* in a very recent MakeMaker for an example). -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Playstation? Of course Perl runs on Playstation. -- Jarkko Hietaniemi