Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 38318
Status: open
Priority: 0/
Queue: Module-Build

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

Bug Information
Severity: Unimportant
Broken in: 0.2808
Fixed in: (no value)



Subject: "./Build testcover" report is extremly big
I run ./Build testcover The coverage only inside of directory blib is useful. I have to wait a very long time and the result is extremly big. Look here: ----------------------------------------------------------------------- All tests successful. Files=2, Tests=2, 47 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 CPU) Result: PASS cover Reading database from D:/workspace/DBD_PO/trunk/Bundle-DBD-PO/cover_db ---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ .../lib/ActivePerl/Config.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 ...l/lib/ActiveState/Path.pm 0.0 0.0 0.0 0.0 100.0 n/a 4.8 D:/Perl/lib/AutoLoader.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 D:/Perl/lib/B.pm 15.4 16.7 16.7 12.5 n/a 94.6 15.5 D:/Perl/lib/B/Debug.pm 0.0 0.0 0.0 0.0 n/a n/a 0.0 D:/Perl/lib/B/Deparse.pm 0.1 0.0 0.3 0.2 0.7 2.0 0.2 D:/Perl/lib/Carp.pm 0.0 0.0 n/a 0.0 0.0 n/a 0.0 D:/Perl/lib/Config.pm 57.9 40.0 n/a 40.0 n/a 0.0 50.0 D:/Perl/lib/Config_heavy.pl 0.0 0.0 0.0 0.0 66.7 n/a 4.1 D:/Perl/lib/Digest/base.pm 0.0 0.0 n/a 0.0 0.0 n/a 0.0 D:/Perl/lib/DynaLoader.pm 70.0 50.0 66.7 50.0 33.3 0.0 61.4 D:/Perl/lib/Exporter.pm 64.6 57.1 43.2 33.3 0.0 0.0 50.4 ...erl/lib/Exporter/Heavy.pm 14.8 8.8 12.5 11.1 0.0 0.0 12.2 D:/Perl/lib/Fcntl.pm 0.0 0.0 n/a 0.0 0.0 n/a 0.0 D:/Perl/lib/File/Basename.pm 0.0 0.0 0.0 0.0 100.0 n/a 2.1 D:/Perl/lib/File/Find.pm 0.0 0.0 0.0 0.0 25.0 n/a 0.2 D:/Perl/lib/File/Glob.pm 0.0 0.0 n/a 0.0 20.0 n/a 1.1 D:/Perl/lib/File/Path.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 D:/Perl/lib/FileHandle.pm 0.0 0.0 n/a 0.0 0.0 n/a 0.0 D:/Perl/lib/Pod/Find.pm 24.5 17.3 17.6 25.0 100.0 0.7 22.1 ...l/lib/Pod/InputObjects.pm 9.6 2.7 2.7 8.8 n/a 0.0 6.2 D:/Perl/lib/Pod/Parser.pm 47.7 33.3 21.9 43.8 0.0 0.7 37.1 D:/Perl/lib/SelectSaver.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 D:/Perl/lib/Symbol.pm 13.5 0.0 0.0 16.7 0.0 0.0 7.6 D:/Perl/lib/Win32.pm 26.9 0.0 0.0 16.7 6.7 0.0 15.8 D:/Perl/lib/XSLoader.pm 0.0 0.0 0.0 0.0 50.0 n/a 1.4 D:/Perl/lib/base.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 D:/Perl/lib/blib.pm 72.2 37.5 33.3 100.0 n/a 0.0 60.0 D:/Perl/lib/constant.pm 0.0 0.0 0.0 0.0 n/a n/a 0.0 D:/Perl/lib/integer.pm 100.0 n/a n/a 100.0 0.0 0.0 80.0 D:/Perl/lib/overload.pm 26.7 8.3 8.3 23.1 27.3 0.0 20.9 D:/Perl/lib/re.pm 0.0 0.0 0.0 0.0 0.0 n/a 0.0 D:/Perl/lib/strict.pm 84.6 50.0 50.0 100.0 0.0 0.0 67.9 D:/Perl/lib/vars.pm 44.4 36.4 0.0 100.0 n/a 0.0 36.2 D:/Perl/lib/warnings.pm 15.8 11.4 0.0 12.5 50.0 0.0 12.9 .../lib/warnings/register.pm 100.0 50.0 n/a 100.0 0.0 0.0 89.5 D:/Perl/site/lib/Cwd.pm 3.9 0.8 0.0 11.1 25.0 0.0 2.8 ...site/lib/Devel/Symdump.pm 25.4 24.2 23.9 42.9 100.0 0.0 27.4 ...ite/lib/File/Spec/Unix.pm 1.8 0.0 0.0 5.9 100.0 0.0 6.5 ...te/lib/File/Spec/Win32.pm 36.0 22.9 0.0 46.2 100.0 0.7 35.1 D:/Perl/site/lib/IO.pm 0.0 0.0 n/a 0.0 n/a n/a 0.0 D:/Perl/site/lib/IO/File.pm 0.0 0.0 0.0 0.0 100.0 n/a 4.7 ...erl/site/lib/IO/Handle.pm 0.7 0.0 0.0 2.6 21.6 0.0 2.6 ...l/site/lib/IO/Seekable.pm 0.0 0.0 n/a 0.0 100.0 n/a 16.7 .../site/lib/Pod/Coverage.pm 44.8 16.0 36.0 61.5 100.0 0.0 39.4 .../Coverage/CountParents.pm 0.0 0.0 n/a 0.0 n/a n/a 0.0 ...l/site/lib/Pod/Escapes.pm 56.7 37.5 13.3 100.0 100.0 0.0 45.3 ...rl/site/lib/Pod/Simple.pm 32.8 21.6 10.4 45.2 18.5 0.7 25.9 ...ib/Pod/Simple/BlackBox.pm 27.3 23.2 28.3 48.5 0.0 0.0 26.6 ...Pod/Simple/LinkSection.pm 53.6 20.0 18.2 57.1 0.0 0.0 38.3 ...b/Pod/Simple/TiedOutFH.pm 60.6 50.0 33.3 50.0 n/a 0.0 53.3 ...l/site/lib/Scalar/Util.pm 0.0 0.0 0.0 0.0 50.0 n/a 2.2 D:/Perl/site/lib/Storable.pm 0.0 n/a n/a 0.0 0.0 n/a 0.0 .../site/lib/Test/Builder.pm 41.3 22.0 15.8 56.5 100.0 0.7 37.3 ...ib/Test/Builder/Module.pm 78.1 0.0 0.0 100.0 100.0 0.0 73.3 ...erl/site/lib/Test/More.pm 7.9 0.0 0.0 15.4 95.5 0.0 9.5 D:/Perl/site/lib/Test/Pod.pm 88.2 63.9 33.3 100.0 100.0 0.0 82.1 .../lib/Test/Pod/Coverage.pm 87.2 52.3 36.4 100.0 100.0 0.0 72.8 blib/lib/Bundle/DBD/PO.pm 100.0 n/a n/a 100.0 n/a 0.0 100.0 Total 17.1 10.0 7.7 18.1 20.0 100.0 14.2 ---------------------------- ------ ------ ------ ------ ------ ------ ------ Writing HTML output to D:/workspace/DBD_PO/trunk/Bundle-DBD- PO/cover_db/coverage.html ... done.
Subject: Re: [rt.cpan.org #38318] "./Build testcover" report is extremly big
Date: Fri, 8 Aug 2008 02:50:13 -0700
To: bug-Module-Build [...] rt.cpan.org
From: Eric Wilhelm <scratchcomputing [...] gmail.com>
# from Steffen Winkler via RT # on Friday 08 August 2008 01:43: Show quoted text
>    ./Build testcover >The coverage only inside of directory blib is useful. I have to wait a >very long time and the result is extremly big.
Is this a Devel::Cover bug or something related to how Module::Build is calling it? Thanks, Eric
Should I open a ticket at Devel::Cover now? Tell me. But I do not realy know, how Devel::Cover is called of Module::Build. It would be more professional if a Module::Build author can do this.
Subject: Re: [rt.cpan.org #38318] "./Build testcover" report is extremly big
Date: Fri, 8 Aug 2008 10:34:56 -0700
To: bug-Module-Build [...] rt.cpan.org
From: Eric Wilhelm <scratchcomputing [...] gmail.com>
# from Steffen Winkler via RT # on Friday 08 August 2008 04:13: Show quoted text
>Should I open a ticket at Devel::Cover now? Tell me. >But I do not realy know, how Devel::Cover is called of Module::Build.
Hi Steffen, You can look in Module/Build/Base.pm at the ACTION_testcover() method to see what is being done. The Devel::Cover documentation has some notes on selecting files. It may have to do with: "The inc directories are initially populated with the contents of the @INC array at the time Devel::Cover was built" As I notice you've got 'D:\' involved. Which means this may be an ActiveState bug. Discussing this on a mailing list would allow more people to answer than just me. Thanks, Eric
Subject: testcover not working with TAP::Harness
If I just run ./Build testcover, it hangs at test 3 in t/basic.t If I force usage of TAP::Harness API, I think this doesn't actually check the coverage, but because this is an environment variable and the ./Build testcover --use-tap-harness 191s later Can't open database /usr/local/code/hop_others/mb.alt/cover_db PERL5LIB=$OVER_THERE/Test-Harness-2.64/lib/:$PERL5LIB \ ./Build testcover 1906s later ... omg forever! Now I have a coverage report for TAP::Parser and Module::Build? And apparently better test coverage for TAP::Base than Module::Build::Base :-) Probably the thing to do here is to tear out the usage of the Test::Harness API completely and maybe use PERL5OPT to -MDevel::Cover. The trick being that most of the M::B test suite that actually exercises M::B uses system().
On Fri Aug 08 13:35:18 2008, scratchcomputing@gmail.com wrote: Show quoted text
> You can look in Module/Build/Base.pm at the ACTION_testcover() > method to see what is being done. > > The Devel::Cover documentation has some notes on selecting files. > It may have to do with: > > "The inc directories are initially populated with the contents of > the @INC array at the time Devel::Cover was built"
Hi Steffen, Have you had a chance to investigate this at all? I think it may be related to our own inability to run testcover. https://rt.cpan.org/Ticket/Display.html?id=39230 In some situations, I'm able to get better results using the --use-test-harness flag. Could you please try that with a new M::B release? Thanks, Eric
Hello Eric, I had installed Module::Build version 0.31, the highest, I can get as an ppm package. I have no idea where I should place the --use-test-harness flag. When I call Build testcover it will be useful if I could write Build testcover -ignore . -select blib/lib and you run require Devel::Cover; Devel::Cover->import('-ignore' => '.', '-select' => 'blib/lib'); or something like that. --Steffen