Dist::Zilla::App::Command::coverh - Code coverage metrics, with history
Version 0.0101, released 2020-02-29.
$ dzil coverh
$ dzil coverh --history
Dist::Zilla::App::Command::coverh is a command extension for Dist::Zilla. It provides the coverh
command, which generates code coverage metrics (in json format)
for the current distribution using Devel::Cover. It appends the summary to a .coverhistory.json
file in the distribution root.
Tests must pass for this to work. Author and release tests are not run. No command-line arguments are passed on to
the cover
command from Devel::Cover.
Prints the contents of the log file:
version date...... ...tot ..stmt ..bran ..cond ...sub ...pod
0.0001 2016-01-16 25.8% 22.4% 0.0% 0.0% 66.7% 100.0%
0.0002 2016-01-17 68.0% 79.8% 23.4% 19.4% 83.0% 100.0%
Depending on which VersionProvider is in use, the version number logged in the log file may or may not correspond to the version number on cpan (for the same version of the distribution).
Only the latest run of coverh
for a certain version number is kept in the log file.
Some parts were borrowed from Dist::Zilla::App::Command::cover.
https://github.com/Csson/p5-Dist-Zilla-App-Command-coverh
https://metacpan.org/release/Dist-Zilla-App-Command-coverh
Erik Carlsson info@code301.com
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.