[Bioperl-l] test::more template
Nathan S. Haigh
n.haigh at sheffield.ac.uk
Fri Oct 20 08:35:03 UTC 2006
Chris Fields wrote:
>>> use strict;
>>> use Bio::Root::IO; # cant test for this, might be needed to get
>> use File::Spec->catfile as Bio::Root::IO->catfile just delegates anyway,
>> and File::Spec is "guaranteed" to be installed with Perl 5.6+.
>>> use lib Bio::Root::IO->catfile('t','lib');
>> Simpler as:
>> use lib 't/lib';
>> I understand the 'lib.pm' accepts Unix style directories REGARDLESS of
>> Torsten Seemann
>> Victorian Bioinformatics Consortium, Monash University, Australia
> That is true, at least for WinXP (not sure about older Windows versions out
> there). I was using 'Root::IO->catfile' but found 'use lib 't/lib' works.
> I may have a few of the 'catfile' versions floating around out there, which
> may be where that originated.
> Note that if you plan on using Test::More with the bioperl-run test suite,
> you should add it to the bioperl-run CVS distribution directory in 't/lib'.
> Most people will have it installed, but you never know.
What is the reason for including Test::More in 't/lib' rather than
having it as a prereq?
> A: Yes.
>> Q: Are you sure?
>>> A: Because it reverses the logical flow of conversation.
>>>> Q: Why is top posting frowned upon?
Get Thunderbird <http://www.mozilla.org/products/thunderbird/>
More information about the Bioperl-l