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

Defines them maximum age (in seconds) of a resultset to still be included in merged results.
i.e. If you run cucumber features, then later rake test, if the stored cucumber resultset is
more seconds ago than specified here, it won't be taken into account when merging (and is also
purged from the resultset cache)

Of course, this only applies when merging is active (e.g. SimpleCov.use_merging is not false!)

Default is 600 seconds (10 minutes)

Configure with SimpleCov.merge_timeout(3600) # 1hr

Source | Google | Stack overflow

Edit

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

cd simplecov

open lib/simplecov/configuration/merging.rb

Contribute

# Make a new branch

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


# Commit to git

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


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

hub pull-request


# Celebrate!