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

SimpleCov Formatter to generate coverage badge via shields.io

License

Notifications You must be signed in to change notification settings

SpringCare/simplecov-shield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%