Skip Menu |

This queue is for tickets about the Test-Kwalitee CPAN distribution.

Report information
The Basics
Id: 24505
Status: open
Priority: 0/
Queue: Test-Kwalitee

People
Owner: ether [...] cpan.org
Requestors: SHERLOCK [...] cpan.org
Cc: DOHERTY [...] cpan.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.30
Fixed in: 0.30



Subject: Doesn't allow certain files to be skipped
Hi, In my distribution (GO-TermFinder), I have a perl file autogenerated by SWIG, and SWIG doesn't use 'use strict' when generating the code. This file then causes a failure in Kwalitee - can a mechanism to skip Kwalitee tests for certain files be added? Also, when I run "make test TEST_VERBOSE=1", the Kwalitee testing doesn't actually report which file the strictness test, though I assume it's the swig generated one, as I also have a .t file that uses Test::Strict on the distribution, which does skip the swig generated file, and it reports no errors. Cheers, Gavin
On 2007-01-22 11:52:57, SHERLOCK wrote: Show quoted text
> Hi, > > In my distribution (GO-TermFinder), I have a perl file autogenerated > by SWIG, and SWIG doesn't > use 'use strict' when generating the code. This file then causes a > failure in Kwalitee - can a > mechanism to skip Kwalitee tests for certain files be added?
If Module::CPANTS::Analyse has such a feature, I'll add an option to set it, but I don't know if it exists. Show quoted text
> Also, when I run "make test TEST_VERBOSE=1", the Kwalitee testing > doesn't actually report > which file the strictness test, though I assume it's the swig > generated one, as I also have a .t file > that uses Test::Strict on the distribution, which does skip the swig > generated file, and it reports > no errors.
This also seems to be a shortcoming with MCA -- some of the diagnostic information is not readily available through its APIs.
Just use the -use_strict option then. E.g. Test::Kwalitee->import( tests => [ qw( -use_strict ) ] );