Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Repository files navigation

simplecov-shield

Gem VersionBuild StatusCode ClimateCoverage StatusDependency StatusLicense

SimpleCov Formatter to generate coverage badge via Shields.io

Install

Add this line to your application's Gemfile

gem 'simplecov-shield'

Or install it yourself

gem install simplecov-shield

Usage

require 'simplecov-shield'
SimpleCov.formatter = SimpleCov::Formatter::ShieldFormatter

Badge will be generated at coverage/coverage.svg

Examples

standard badge

flat badge

Configuration

SimpleCov::Formatter::ShieldFormatter.config[:option] = value
Options
NameDescriptionDefaultAllowed
badge_namebadge title'coverage'String
stylebadge style:normal:normal, :flat
precisioncoverage percent precision0Integer

Contributing

see CONTRIBUTING.md

Copyright

Copyright (c) 2014 Andrew Terris, Lesley Dennison

About

SimpleCov Formatter to generate coverage badge via shields.io

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages