No release in over 3 years
Low commit activity in last 3 years
Helps to setup SimpleCov Rcov formatter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.88.0

Runtime

 Project Readme

Simplecov::Formatter::RcovFormatter::Setup

Build Status Gem Version

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

  1. Fork it ( https://github.com/raszi/simplecov-rcov-setup/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request