My team uses SimpleCov with Code Climate and Travis CI. We have several entire files in our configurations folder that we'd like to skip from coverage reports. It'd be great if we could somehow configure this upfront in a .yml file, rather than using # :nocov: tags to surround each file!
I think you should be able to do this already using a filter.
SimpleCov.start do
add_filter "path/to/your/file.rb"
end
Docs at https://github.com/colszowka/simplecov#defining-custom-filters (which suggest that this string is regex matched, so may need some anchors to make it specific enough)
Closing because I'm pretty sure that'll do it, but if not please do re-open!
@xaviershay you're right, that works! Thanks for your help!
Most helpful comment
I think you should be able to do this already using a filter.
Docs at https://github.com/colszowka/simplecov#defining-custom-filters (which suggest that this string is regex matched, so may need some anchors to make it specific enough)
Closing because I'm pretty sure that'll do it, but if not please do re-open!