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

.simplecov: filter more filters/folders. #3545

Merged
merged 1 commit into from Dec 8, 2017

Conversation

MikeMcQuaid
Copy link
Member

This is stuff that can never be exercised by our test suite but is exercised by brew test-bot so remove it from the coverage checks.

This is stuff that can never be exercised by our test suite but is
exercised by `brew test-bot` so remove it from the coverage checks.
add_filter %r{^/os/mac/} unless RbConfig::CONFIG["host_os"].include?("darwin")
unless RbConfig::CONFIG["host_os"].include?("linux")
add_filter %r{^/os/linux/}
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the two different styles here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubocop changing this based on the line length.

@@ -38,11 +38,22 @@ SimpleCov.start do
track_files "#{SimpleCov.root}/{#{subdirs},*.rb}"
end

add_filter %r{^/build.rb$}
add_filter %r{^/config.rb$}
add_filter %r{^/constants.rb$}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn‘t this be covered by running any integration test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or it's been already included.

@MikeMcQuaid MikeMcQuaid merged commit 4df1286 into Homebrew:master Dec 8, 2017
@MikeMcQuaid MikeMcQuaid deleted the more-coverage-filters branch December 8, 2017 20:42
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants