SimpleCov::Formatter::IdobataFormatter
report your test coverage to idobata.io.
Installation
Add this line to your application's Gemfile:
gem 'simplecov-idobata', require: false
And then execute:
$ bundle
Or install it yourself as:
$ gem install simplecov-idobata
Usage
require 'simplecov/idobata'
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::IdobataFormatter,
]
# Set environment variable SIMPLECOV_IDOBATA_HOOK_URL or
SimpleCov::Formatter::IdobataFormatter.hook_url = "Your idobata generic webhook endpoint url"
# You can customize the coverage thresholds, default is here:
SimpleCov::Formatter::IdobataFormatter.goal = 90
SimpleCov::Formatter::IdobataFormatter.warning = 80
Contributing
- Fork it ( https://github.com/hanachin/simplecov-idobata/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request