Skip to content

Commit

Permalink
Merge branch 'master' of github.com:parrot/parrot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerd Pokorra committed Dec 22, 2010
2 parents be3768d + 1865326 commit bc0a7d2
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docs/dev/coverage.pod
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright (C) 2001-2010, Parrot Foundation.

=head1 Make Cover

docs/dev/coverage.pod - Make Cover Documentation.

=head1 Overview

"make cover" is a very useful tool which generates reports on how well tested
parrot code is. The coverage reports are outputted in various formats in
cover_db/ after C<make cover> has run. The final result of make cover is a
listing of parrot's source files and a matching percentage of how well covered
that file is by the tests.

=head1 Dependencies

Obviously, the first step would be to get parrot and build it. See
F<docs/intro.pod> for more information. To run "make cover" you must first
install some Perl tools to aid in the creation of these reports. Make Cover
requires the "Devel::Cover" perl module. If you are running Debian/Ubuntu type
systems you can run

sudo apt-get install libdevel-cover-perl

or using CPAN:

perl -MCPAN -e 'install Devel::Cover'

and that will install the required module. Other OSes may have this packaged
as well, so try to find it. If you do not have a packaged version of this
module, head over to http://search.cpan.org/dist/Devel-Cover/ and install it.

=head1 Process

Next, make sure your working parrot directory is as clean as can be. Any left
over files can cause problems when generating the coverage reports.

make realclean

or

git clean -dfx

Next, run C<make test> to see if there are any failing tests. Finally you can
type in C<make cover> and leave to make a sandwich and something to drink
because it's probably going to take a I<long> time to run. If you run into
trouble, C<make fulltest> may be of some assistance.

=head1 Quickcover

If you have run C<make cover> before, you know how long it takes to execute
that command. Recently a new tool C<make quickcover> has been added that is
much faster, but does not run tests in all runcores.

=cut

__END__
Local Variables:
fill-column:78
End:
vim: expandtab shiftwidth=4:

0 comments on commit bc0a7d2

Please sign in to comment.