Badge-Depot-Plugin-Coverage
view release on metacpan or search on metacpan
Revision history for Badge-Depot-Plugin-Coverage
0.0102 2020-12-26 21:35:37 UTC
[Bug Fixes]
- Url-encode the percentage sign
[Stats & Dependency Changes]
- 3 files changed, 55 insertions(+), 6 deletions(-)
- (run req) ~ DateTime (any) --> 1.05
- (run req) ~ JSON::MaybeXS (any) --> 1.003003
- (run req) ~ Moose (any) --> 2.1803
- (run req) ~ MooseX::AttributeShortcuts (any) --> 0.028
- (run req) ~ Path::Tiny (any) --> 0.072
- (run req) ~ Types::Standard (any) --> 1.000006
- (run req) ~ namespace::autoclean (any) --> 0.22
lib/Badge/Depot/Plugin/Coverage.pm view on Meta::CPAN
This L<Badge::Depot> badge is meant to be used together with L<Dist::Zilla::App::Command::coverh> (or standalone, as per the synopsis) and creates a coverage badge:
=for HTML <p><img src="https://img.shields.io/badge/coverage-87%25-orange.svg" /></p>
=for markdown 
=head1 ATTRIBUTES
=head2 coverage
Set the code coverage percentage manually. Should only be used when L<Dist::Zilla::App::Command::coverh> is B<not> used.
=head2 custom_image_url
Default: C<https://img.shields.io/badge/%s-%s-%s.svg>
Override the default image url. It is expected to have three C<sprintf> placeholders: Text, coverage percentage and color.
=head2 max_age
Default: C<60>
When used together with L<Dist::Zilla::App::Command::coverh>, only include the badge if the latest coverage run was less than C<max_age> minutes ago.
=head2 text
Default: C<coverage>
Set a different coverage percentage. The percentage sign will be appended.
=head1 SEE ALSO
=over 4
=item *
L<Badge::Depot>
=item *
( run in 0.330 second using v1.01-cache-2.11-cpan-709fd43a63f )