Kwalitee and Perl::Critic
I don't have strong opinions about this yet, but has anyone else looked at the Perl::Critic suite of modules on CPAN? It occurs to me that: a) Kwalitee metrics could quite easily be implemented as Perl::Critic plugins. b) The plugins that it ships with (based on Perl Best Practices) may form good kwalitee indicators. N
Re: Test::Kwalitee - Where is it hosted?
On Tue, Oct 04, 2005 at 04:15:45PM +0100, Dave Cross wrote: > 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/s2.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. > Looking at http://use.perl.org/~chromatic/journal/25127 (I love Google), its still waiting to go to CPAN. Steve Peters [EMAIL PROTECTED]
Re: Test::Kwalitee - Where is it hosted?
> On Tue, 2005-10-04 at 17:41 +0200, Thomas Klausner wrote: > > Hi all, > >> In june, chromatic informed me that he planned something like >> Test::Kwalitee. AFAIK it was/is in 'proof of concept'-stage, mostly >> because CPANTS was a fast-moving target back then (I was rewriting stuff >> a lot...) > > Yep, I had it working then too, then I fell behind in tracking > Module::CPANTS::Generator. I'll try to synchronize my code this > weekend. Cool. Look forward to testing. -- 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
Re: Test::Kwalitee - Where is it hosted?
On Tue, 2005-10-04 at 17:41 +0200, Thomas Klausner wrote: Hi all, > In june, chromatic informed me that he planned something like > Test::Kwalitee. AFAIK it was/is in 'proof of concept'-stage, mostly > because CPANTS was a fast-moving target back then (I was rewriting stuff > a lot...) Yep, I had it working then too, then I fell behind in tracking Module::CPANTS::Generator. I'll try to synchronize my code this weekend. -- c
Re: Test::Kwalitee - Where is it hosted?
-- 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 > Dave Cross <[EMAIL PROTECTED]> wrote: > >> 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. > > Although not directly related to CPANTS, you can use Test::Distribution, > which tests several aspects also tested by CPANTS kwalitee metrics. > http://search.cpan.org/dist/Test-Distribution/ I've got that one, not sure if it duplicates the tests yet though. > > > -- > Sébastien Aperghis-Tramoni > > Close the world, txEn eht nepO. >
Re: Test::Kwalitee - Where is it hosted?
Dave Cross <[EMAIL PROTECTED]> wrote: > 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. Although not directly related to CPANTS, you can use Test::Distribution, which tests several aspects also tested by CPANTS kwalitee metrics. http://search.cpan.org/dist/Test-Distribution/ -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Re: Test::Kwalitee - Where is it hosted?
Hi! On Tue, Oct 04, 2005 at 04:15:45PM +0100, Dave Cross wrote: > >>Dear List, > >> > >>In "Perl Testing - A Developers Notebook" it has a section on > >>Test::Kwalitee. > .. > Actually the book strongly suggests that it's a real module which runs > the Kwalitee checks on your code > .. > That's from section 4.9 Validating Kwalitee. In june, chromatic informed me that he planned something like Test::Kwalitee. AFAIK it was/is in 'proof of concept'-stage, mostly because CPANTS was a fast-moving target back then (I was rewriting stuff a lot...) BTW, Module::CPANTS::Generator nwo includes a script called lint.pl http://search.cpan.org/src/DOMM/Module-CPANTS-Generator-0.43/cpants/lint.pl that sort of runs kwalitee checks on an unreleased dist. It's not documented and hardly working (e.g. it can only test on dist, and reporting is done by writing a sqlite file (with a fixed name...)) -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Re: Test::Kwalitee - Where is it hosted?
> On Tue, Oct 04, 2005 at 04:15:45PM +0100, Dave Cross wrote: >> 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/s2.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. >> > > Looking at http://use.perl.org/~chromatic/journal/25127 (I love Google), > its > still waiting to go to CPAN. > I missed that then. Well, that's a bit of keen advertising in his book ;-) Gavin. -- 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
Re: Test::Kwalitee - Where is it hosted?
Dave Cross wrote: 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/s2.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. Perhaps this has been subsumed into what is now Module::CPANTS::Generator? DAvid Dave... -- "It's overkill of course, but you can never have too much overkill."
Re: Test::Kwalitee - Where is it hosted?
> 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/s2.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
Re: Test::Kwalitee - Where is it hosted?
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/s2.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... -- Site: http://dave.org.uk/ Blog: http://blog.dave.org.uk/ Code: http://dave.org.uk/code/
Re: Test::Kwalitee - Where is it hosted?
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/s2.html David -- "It's overkill of course, but you can never have too much overkill."
Test::Kwalitee - Where is it hosted?
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. Anyone know where it's hosted? Thanks. -- 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