Skip Menu |

This queue is for tickets about the URI-Escape-JavaScript CPAN distribution.

Report information
The Basics
Id: 108747
Status: open
Priority: 0/
Queue: URI-Escape-JavaScript

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.04
Fixed in: (no value)



Subject: perlcritic test fails
The t/perlcritic.t test may fail like this: # Failed test 'Test::Perl::Critic for "lib/URI/Escape/JavaScript.pm"' # at /opt/perl-5.20.1/lib/site_perl/5.20.1/Test/Perl/Critic.pm line 104. # # Variable, subroutine, and package names have to be in CamelCase at line 10, column 5. (no explanation). (Severity: 5) ... # Variable, subroutine, and package names have to be in CamelCase at line 28, column 1. (no explanation). (Severity: 5) t/perlcritic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests
On 2015-11-11 10:18:15, SREZIC wrote: Show quoted text
> The t/perlcritic.t test may fail like this: > > # Failed test 'Test::Perl::Critic for "lib/URI/Escape/JavaScript.pm"' > # at /opt/perl-5.20.1/lib/site_perl/5.20.1/Test/Perl/Critic.pm line > # 104. > # > # Variable, subroutine, and package names have to be in CamelCase at > # line 10, column 5. (no explanation). (Severity: 5) > ... > # Variable, subroutine, and package names have to be in CamelCase at > # line 28, column 1. (no explanation). (Severity: 5) > t/perlcritic.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/1 subtests
Please do not allow perlcritic tests to run for normal user installs. Since they run all critic policies that are installed on the user's machine, the outcome can be unpredictable, and they prevent installations unnecessarily. Either move them to xt/, or guard them with: plan skip_all => "These tests are for authors only!" unless $ENV{AUTHOR_TESTING} or $ENV{RELEASE_TESTING};