aterris / simplecov-shield

SimpleCov Formatter to generate coverage badge via shields.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

SimpleCov Formatter to generate coverage badge via shields.io

License:MIT License


Languages

Language:Ruby 100.0%