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.start

Sets up SimpleCov to run against your project.
You can optionally specify a profile to use as well as configuration with a block:
  SimpleCov.start
   OR
  SimpleCov.start 'rails' # using rails profile
   OR
  SimpleCov.start do
    add_filter 'test'
  end
    OR
  SimpleCov.start 'rails' do
    add_filter 'test'
  end

Please check out the RDoc for SimpleCov::Configuration to find about available config options

Source | Google | Stack overflow

Edit

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

cd simplecov

open lib/simplecov.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-SimpleCov-start-for-pr


# Commit to git

git add lib/simplecov.rbgit commit -m "better docs for SimpleCov.start"


# 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-start-for-pr

hub pull-request


# Celebrate!