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.
Edit
git clone [email protected]:simplecov-ruby/simplecov.git
cd simplecov
open lib/simplecov/configuration.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-SimpleCov--Configuration-configure-for-pr
# Commit to gitgit add lib/simplecov/configuration.rbgit commit -m "better docs for SimpleCov::Configuration#configure"
# Open pull requestgem 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!