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

Certain code blocks (i.e. Ruby-implementation specific code) can be excluded from
the coverage metrics by wrapping it inside # :nocov: comment blocks. The nocov token
can be configured to be any other string using this.

Configure with SimpleCov.nocov_token('skip') or it's alias SimpleCov.skip_token('skip')

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-nocov_token-for-pr


# Commit to git

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


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

hub pull-request


# Celebrate!