simplecov

https://github.com/simplecov-ruby/simplecov

Ruby

Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites

SimpleCov::Configuration#configure

Allows you to configure simplecov in a block instead of prepending SimpleCov to all config methods
you're calling.

SimpleCov.configure do
  add_filter 'foobar'
end

This is equivalent to SimpleCov.add_filter 'foobar' and thus makes it easier to set a bunch of configure
options at once.

Source | Google | Stack overflow

Edit

git clone [email protected]:simplecov-ruby/simplecov.git

cd simplecov

open lib/simplecov/configuration.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-SimpleCov--Configuration-configure-for-pr


# Commit to git

git add lib/simplecov/configuration.rbgit commit -m "better docs for SimpleCov::Configuration#configure"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-SimpleCov--Configuration-configure-for-pr

hub pull-request


# Celebrate!