# Makefile.PL
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'txu_bims',
VERSION_FROM => 'VERSION.pm',
test => {TESTS => './TXU/BIMS/t/*.t ./TXU/t/*.t'}, # how to pass multiple test paths
PMLIBDIRS => ['./TXU/BIMS', './TXU'],
PREREQ_PM => {
Log::Log4perl => 0.36,
},
);
####
# template Module/Under/t/Test.t
#!/usr/bin/perl -w
use strict;
use Test::More qw(no_plan);
use Module::Under::Test;
# test go here
my $obj = Module::Under::Test->new();
isa_ok($obj, 'Module::Under::Test');
is($obj->method(), 'expected output', 'standard test');
is_deeply($obj->meth_retn_ref(), {complex => {structure => ['here']}}, 'method returns ref to complex structure');
####
perl Makefile.PL
make test