Simplecov Badge Formatter
Examples
Installation
Add this line to your application's Gemfile:
gem 'simplecov-formatter-badge', require: false
And then execute:
$ bundle
Usage
require 'simplecov-formatter-badge'
SimpleCov.formatter =
SimpleCov::Formatter::MultiFormatter.new \
[SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::BadgeFormatter]
then use it from your README
[![coverage](https://path.to.report/coverage.svg)](https://path.to.report/)
Why not ...
- simplecov-badge: not pretty
- simplecov-formatter-shield: bug & not fix it
- simplecov-shields-badge: do not want commit coverage