SimpleCov Formatter to generate coverage badge via Shields.io
Add this line to your application's Gemfile
gem 'simplecov-shield'
Or install it yourself
gem install simplecov-shield
require 'simplecov-shield'
SimpleCov.formatter = SimpleCov::Formatter::ShieldFormatter
Badge will be generated at coverage/coverage.svg
SimpleCov::Formatter::ShieldFormatter.config[:option] = value
Name | Description | Default | Allowed |
---|---|---|---|
badge_name | badge title | 'coverage' | String |
style | badge style | :normal | :normal, :flat |
precision | coverage percent precision | 0 | Integer |
see CONTRIBUTING.md
Copyright (c) 2014 Andrew Terris, Lesley Dennison