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

The name of the command (a.k.a. Test Suite) currently running. Used for result
merging and caching. It first tries to make a guess based upon the command line
arguments the current test suite is running on and should automatically detect
unit tests, functional tests, integration tests, rpsec and cucumber and label
them properly. If it fails to recognize the current command, the command name
is set to the shell command that the current suite is running on.

You can specify it manually with SimpleCov.command_name("test:units") - please
also check out the corresponding section in README.rdoc

Source | Google | Stack overflow

Edit

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

cd simplecov

open lib/simplecov/configuration.rb

Contribute

# Make a new branch

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


# Commit to git

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


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

hub pull-request


# Celebrate!