note
rjt
<p>I assume you mean [mod://Devel::Cover]. If you haven't already, that documentation is really good, and covers some of your questions.</p>
<p>If you're getting unwanted files in your output, you can use <c>-ignore</c> or <c>+ignore</c> with a regexp. But you normally shouldn't be seeing those included modules. What does your directory structure look like, and how exactly are you invoking <c>cover</c>?</p>
<p>I use Devel::Cover in my distributions. In that case, I simply run <c>cover -test</c> in the root of my distribution, which runs <c>make test</c> and reports the coverage, and won't report coverage of other external modules. Here's what the output looks like for me:</p>
<code>pts/6 ryan@pi:~/src/Text-Trim $> cover -test
Deleting database /home/ryan/src/Text-Trim/cover_db
cover: running make test "OPTIMIZE=-O0 -fprofile-arcs -ftest-coverage" "OTHERLDFLAGS=-fprofile-arcs -ftest-coverage"
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00..load.t ..... 1/? # Testing Text::Trim 1.03, Perl 5.026001, /usr/bin/perl
t/00..load.t ..... ok
t/01..trim.t ..... ok
t/02..ltrim.t .... ok
t/03..rtrim.t .... ok
t/04..unicode.t .. ok
t/05..undef.t .... ok
t/99..pod.t ...... ok
All tests successful.
Files=7, Tests=64, 2 wallclock secs ( 0.02 usr 0.00 sys + 1.91 cusr 0.09 csys = 2.02 CPU)
Result: PASS
Reading database from /home/ryan/src/Text-Trim/cover_db
--------------------- ------ ------ ------ ------ ------ ------ ------
File stmt bran cond sub pod time total
--------------------- ------ ------ ------ ------ ------ ------ ------
blib/lib/Text/Trim.pm 100.0 100.0 100.0 100.0 100.0 100.0 100.0
Total 100.0 100.0 100.0 100.0 100.0 100.0 100.0
--------------------- ------ ------ ------ ------ ------ ------ ------
HTML output written to /home/ryan/src/Text-Trim/cover_db/coverage.html
done.
</code>
<p>I am not exactly sure what you mean by "merging", but if you can get all of your source code into the same distribution, you can have one report cover the whole thing. If that is not desirable or feasible, then I'm not sure what to suggest, aside from a simple concatenation or pagination of the results.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-840762">
<div class="pmsig">
<c>use strict; use warnings;</c> omitted for brevity.</div>
</div></div>
11107005
11107005