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

Defines the minimum coverage per file required for the testsuite to pass.
SimpleCov will return non-zero if the current coverage of the least covered file
is below this threshold.

Default is 0% (disabled)

Source | Google | Stack overflow

Edit

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

cd simplecov

open lib/simplecov/configuration/thresholds.rb

Contribute

# Make a new branch

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


# Commit to git

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


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

hub pull-request


# Celebrate!