Simplecov::Formatter::RcovFormatter::Setup
Helps you to set up the RcovFormatter easily
Installation
Add this line to your application's Gemfile:
gem 'simplecov-rcov-setup', require: false
And then execute:
$ bundle
Or install it yourself as:
$ gem install simplecov-rcov-setup
Usage
Require it in your spec/spec_helper.rb
:
require 'simplecov-rcov-setup'
Then start it:
SimpleCov::Formatter::RcovFormatter::Setup.unconditionally
If you want to turn on/off the coverage generation with the COVERAGE
environment variable then use the #conditionally
method instead:
require 'simplecov-rcov-setup'
SimpleCov::Formatter::RcovFormatter::Setup.conditionally
You can also configure it before starting:
SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
SimpleCov::Formatter::RcovFormatter::Setup.formatters = SimpleCov::Formatter::RcovFormatter
even more complex setup is possible:
SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
SimpleCov::Formatter::RcovFormatter::Setup.unconditionally do
add_group 'Decorators', 'app/decorators'
end
Contributing
- Fork it ( https://github.com/raszi/simplecov-rcov-setup/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