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#at_exit

Gets or sets the behavior to process coverage results.

By default, it will call SimpleCov.result.format!

Configure with:
  SimpleCov.at_exit do
    puts "Coverage done"
    SimpleCov.result.format!
  end

Source | Google | Stack overflow

Edit

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

cd simplecov

open sig/simplecov.rbs

Contribute

# Make a new branch

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


# Commit to git

git add sig/simplecov.rbsgit commit -m "better docs for SimpleCov::Configuration#at_exit"


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

hub pull-request


# Celebrate!