Skip to content

Conversation

@grodowski
Copy link
Owner

@grodowski grodowski commented Nov 21, 2025

Adds test that regex and string filters from SimpleCov work with nested paths ("monorepo" setup)
Bonus: add vendor/ to default excludes

def normalized(filepath)
# SimpleCov's 'rails' profile adds regex filters that start with a slash by default. Let's be compatible.
def normalize_slash(filepath)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Could potentially break existing non-default filters 🤔


ignored_files = coverage_adapter.ignored_files || []
@filter_set = FilterSet.new(opts.glob_allow_filters, opts.glob_reject_filters, ignored_files)
@filter_set = FilterSet.new(opts.glob_allow_filters, opts.glob_reject_filters, ignored_files, path: @code_dir)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Just pass all opts?

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.

2 participants