The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ExtUtils::MakeMaker::Coverage - add a Makefile target to determine test coverage using Devel::Cover

VERSION

Version 0.01_01

SYNOPSIS

This module adds an additional target to the Makefile generated by ExtUtils::MakeMaker. The target, testcover, calls cover, the command-line script to generate test coverage statistics, to clean up any data from a previous run. It then runs the tests, as if make test was run, then calls cover again to generate the coverage statistics.

    # In Makefile.PL
    use ExtUtils::MakeMaker;
    use ExtUtils::MakeMaker::Coverage;

In your shell

    > perl Makefile.PL
    > make
    > make testcover

TODO

This is alpha quality code in terms of features. For this module to be usable for the as many modules as possible, the following additional features are needed.

MY::postamble

This module will have issues if the Makefile already has a My::postamble defined for it.

Devel::Cover and cover

This module doesn't care if Devel::Cover is installed or if cover is in the path. This should be changed.

AUTHOR

Steve Peters, <steve@fisharerojo.org>

BUGS

Please report any bugs or feature requests to bug-extutils-makemaker-coverage@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

Paul Johnson

For developing Devel::Cover and enduring my many questions on IRC.

Andy Lester

For helping to make me a test-infected Perl programmer.

SEE ALSO

Devel::Cover
http://qa.perl.org

COPYRIGHT & LICENSE

Copyright 2005 Steve Peters, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.