-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter /vendor/bundle
by default
#331
Conversation
66dac89
to
bc114f0
Compare
I think making and documenting a bundler profile would make more sense |
The Rails profile filters out `/vendor/bundle`, but this is also needed for many other kinds of Ruby projects. A GitHub search illustrates how often developers need to configure this: https://github.com/search?utf8=%E2%9C%93&q=simplecov+%22add_filter*vendor%22&type=Code&ref=searchresults I can't think of any downside of having this as the default behaviour.
bc114f0
to
fab98f9
Compare
@bf4 makes sense, updated based on your comment. |
689480e
to
ec43ea9
Compare
SimpleCov.profiles.define 'rails' do | ||
load_profile 'test_frameworks' | ||
|
||
add_filter '/config/' | ||
add_filter '/db/' | ||
add_filter '/vendor/bundle/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug! load the bundler profile as well..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's now done as part of the load_profile 'test_frameworks'
so shouldn't be necessary to repeat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction - it's now done in the SimpleCov.configure
block.
@colszowka @bf4 any thoughts on this? |
c7c5ad5
to
4c39fa3
Compare
👍 Merging. |
Filter `/vendor/bundle` by default
Niiiice. 👍 |
The Rails profile filters out
/vendor/bundle
, but this is also needed for many other kinds of Ruby projects.A GitHub search illustrates how often developers need to configure this:
https://github.com/search?utf8=%E2%9C%93&q=simplecov+%22add_filter*vendor%22&type=Code&ref=searchresults
I can't think of any downside of having this as the default behaviour.