I just want to exclude the vendor gems from being shown with the coverage report, how to do that?
Here is how my coverage report looks like:
Here is how I handled it, figured out with their documentation!
SimpleCov.profiles.define 'no_vendor_coverage' do
load_profile 'rails'
add_filter 'vendor' # Don't include vendored stuff
end
SimpleCov.start 'no_vendor_coverage'
You can exclude the vendors folder adding a filter in the spec_helper.rb or where you define the configuration for SimpleCov
SimpleCov.start 'rails' do
add_filter 'vendor'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With