Skip to content
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

Merged
merged 1 commit into from
Apr 18, 2015

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Sep 14, 2014

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.

@bf4
Copy link
Collaborator

bf4 commented Sep 14, 2014

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.
@andyw8
Copy link
Contributor Author

andyw8 commented Sep 14, 2014

@bf4 makes sense, updated based on your comment.

@sferik sferik force-pushed the master branch 2 times, most recently from 689480e to ec43ea9 Compare September 20, 2014 05:57
SimpleCov.profiles.define 'rails' do
load_profile 'test_frameworks'

add_filter '/config/'
add_filter '/db/'
add_filter '/vendor/bundle/'
Copy link
Collaborator

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..

Copy link
Contributor Author

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?

Copy link
Contributor Author

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.

@andyw8
Copy link
Contributor Author

andyw8 commented Apr 2, 2015

@colszowka @bf4 any thoughts on this?

@sferik sferik force-pushed the master branch 9 times, most recently from c7c5ad5 to 4c39fa3 Compare April 18, 2015 12:02
@sferik
Copy link
Collaborator

sferik commented Apr 18, 2015

👍 Merging.

sferik added a commit that referenced this pull request Apr 18, 2015
@sferik sferik merged commit e957a47 into simplecov-ruby:master Apr 18, 2015
@nTraum
Copy link

nTraum commented Apr 18, 2015

Niiiice. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants