mandog has asked for the wisdom of the Perl Monks concerning the following question:
I've looked at:
.but still am not sure of the best place in Build.PL to list modules that are used only in t/*.t. In my *.t files non standard modules are guarded like:man Module::Build::Authoring man Module::Build::Cookbook
use Test::More; # in Build.PL::build_requires eval 'use Test::Do::Funky:Chicken;' if ($@){ plan skip_all => 'Test::Funky::Chicken needed'; }else{ plan tests => 99; }
I am tending toward the recommends section.
Advice ?
UPDATE: fixed eval per ysth kind and helpful advice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module::Build reccomends build_requires
by ysth (Canon) on Jan 05, 2009 at 01:11 UTC | |
Re: Module::Build reccomends build_requires
by xdg (Monsignor) on Jan 05, 2009 at 03:12 UTC | |
Re: Module::Build reccomends build_requires
by Anonymous Monk on Jan 05, 2009 at 01:11 UTC | |
by mandog (Curate) on Jan 05, 2009 at 03:09 UTC | |
by DStaal (Chaplain) on Jan 05, 2009 at 15:07 UTC |
Back to
Seekers of Perl Wisdom