Giter Site home page Giter Site logo

p5-badge-depot-plugin-coverage's Introduction

NAME

Badge::Depot::Plugin::Coverage - Code coverage plugin for Badge::Depot

VERSION

Version 0.0102, released 2020-12-26.

SYNOPSIS

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

DESCRIPTION

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:

Coverage 87%

ATTRIBUTES

coverage

Set the code coverage percentage manually. Should only be used when Dist::Zilla::App::Command::coverh is not used.

custom_image_url

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.

max_age

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.

text

Default: coverage

Set a different coverage percentage. The percentage sign will be appended.

SEE ALSO

SOURCE

https://github.com/Csson/p5-Badge-Depot-Plugin-Coverage

HOMEPAGE

https://metacpan.org/release/Badge-Depot-Plugin-Coverage

AUTHOR

Erik Carlsson [email protected]

COPYRIGHT AND LICENSE

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.

p5-badge-depot-plugin-coverage's People

Contributors

csson avatar

Watchers

James Cloos avatar  avatar

p5-badge-depot-plugin-coverage's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.