Badge::Depot::Plugin::Coverage - Code coverage plugin for Badge::Depot
Version 0.0102, released 2020-12-26.
Used standalone:
use Badge::Depot::Plugin::Coverage;
my $badge = Badge::Depot::Plugin::Coverage->new(coverage => 87);
print $badge->to_html;
Used together with Pod::Weaver::Section::Badges, in weaver.ini:
[Badges]
; other settings
badge = Coverage
This Badge::Depot badge is meant to be used together with Dist::Zilla::App::Command::coverh (or standalone, as per the synopsis) and creates a coverage badge:
Set the code coverage percentage manually. Should only be used when Dist::Zilla::App::Command::coverh is not used.
Default: https://img.shields.io/badge/%s-%s-%s.svg
Override the default image url. It is expected to have three sprintf
placeholders: Text, coverage percentage and color.
Default: 60
When used together with Dist::Zilla::App::Command::coverh, only include the badge if the latest coverage run was less than max_age
minutes ago.
Default: coverage
Set a different coverage percentage. The percentage sign will be appended.
https://github.com/Csson/p5-Badge-Depot-Plugin-Coverage
https://metacpan.org/release/Badge-Depot-Plugin-Coverage
Erik Carlsson [email protected]
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.