Ignore `.bundle` when generating test coverage

Fix the code coverage reporting when using `.bundle` to store my gems in
by having SimpleCov ignore that directory. Use of `.bundle` to store my
gems consolidates things since since that directory also holds the
bundler config file. It also keeps a `vendor` directory out of the
project tree for non-Rails projects.  Simplecov was not ignoring that
directory though, which meant that the code coverage numbers I were
seeing locally were wrong (and very frightening). With this change, all
is right with the world once again. 😃
This commit is contained in:
Matt Rogers 2015-10-15 20:59:34 -05:00
parent 8add5aec4b
commit ff504a39ba
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ unless ENV['TRAVIS']
SimpleCov.start('gem') do
add_filter "/vendor/bundle"
add_filter "/vendor/gem"
add_filter ".bundle"
end
end