simplecov-shield
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
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