<quote who="Dave Cross"> > David Landgren wrote: >> Gavin Henry wrote: >> >>> Dear List, >>> >>> In "Perl Testing - A Developers Notebook" it has a section on >>> Test::Kwalitee. >>> >>> I can't find this module anywhere, nothing on the CPAN or on Google. >> >> It would only be POD, I imagine. >> >>> Anyone know where it's hosted? >> >> Kwalitee, as in cpants.perl.org, is run by Thomas "domm" Klausner. >> >> What is Kwalitee >> http://cpants.perl.org/kwalitee.html >> >> Y::E 2005 Braga slides by Thomas Klausner >> http://domm.zsi.at/talks/2005_braga_cpants/s00002.html > > Actually the book strongly suggests that it's a real module which runs > the Kwalitee checks on your code > > Download and install Test::Kwalitee. Then add the following code to > your t/ directory as kwalitee.t: > > #!perl > > eval { require Test::Kwalitee }; > exit if $@; > Test::Kwalitee->import( ); > > That's from section 4.9 Validating Kwalitee. > > Dave... >
Yup. Although I changed the example to be more like their previous examples: use Test::More; eval 'require Test::Kwalitee'; plan( skip_all => 'Test::Kwalitee not installed' ) if $@; Test::Kwalitee->import(); Maybe I should change it to: plan( skip_all => 'Test::Kwalitee not installed, because I can't find it' ) if $@; ;-) -- Walking the road to enlightenment... I found a penguin and a camel on the way..... Fancy a [EMAIL PROTECTED] Just ask!!! http://perlmonks.org/?node_id=386673