[Bioperl-l] test::more template
cjfields at uiuc.edu
Thu Oct 19 20:29:11 EDT 2006
> > 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.
More information about the Bioperl-l