0.04
No commit activity in last 3 years
No release in over 3 years
Shield generator for SimpleCov
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.13.0
~> 0.8.2
 Project Readme

simplecov-shield

Gem Version Build Status Code Climate Coverage Status Dependency Status License

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
Name Description Default Allowed
badge_name badge title 'coverage' String
style badge style :normal :normal, :flat
precision coverage percent precision 0 Integer

Contributing

see CONTRIBUTING.md

Copyright

Copyright (c) 2014 Andrew Terris, Lesley Dennison