Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 4136
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: gabor [...] pti.co.il
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.26
Fixed in: 0.27



Subject: fetching version is a bit noisy
Download (untitled) / with headers
text/plain 1.2k
When check the version of Devel::Cover installed on my machine I got the values but it gave a bit too much output. Can it be reduced to just the version number ? Show quoted text
>perl -MDevel::Cover -e'print
$Devel::Cover::VERSION' Devel::Cover 0.26: Collecting coverage data for branch, condition, pod, statement, subroutine and time. Selecting packages matching: Ignoring packages matching: \bt/ Ignoring packages in: . /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux Devel::Cover: Can't find file "-e": ignored. 0.26Devel::Cover: Writing coverage database to /home/gabor/projects/perl/modules/Devel-Cover-Examples/cover_db ---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt branch cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ ...b/Devel/Cover/Examples.pm 100.00 0.00 n/a 100.00 0.00 100.00 73.33 Total 100.00 0.00 n/a 100.00 0.00 100.00 73.33 ---------------------------- ------ ------ ------ ------ ------ ------ ------
Download (untitled) / with headers
text/plain 465b
I don't think there's much that can easily be done about this without removing other useful behaviour. As of 0.27, in response to your other ticket, a simple require will not execute any of the code coverage code, so the version can be discovered with this mantra: perl -le 'require Devel::Cover; print $Devel::Cover::VERSION' I'll set the ticket to resolved, but feel free to reopen it if this solution is unsatisfactory for some reason. Thanks for the report.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.