Skip to content

Conversation

@nicolae-stroncea
Copy link

Hi!

This commit allows you to explicitly specify the files that you want to view in the output.

The use case for this is when you have a very large code base but you want to only see the coverage information for specific files. In that case you can now modify the files_to_filter property for the Formatter::Console.

files = result.files
else
files = result.files.select do |file|
SimpleCov::Formatter::Console.files_to_filter.include?(file.filename)
Copy link
Owner

Choose a reason for hiding this comment

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

It looks like files_to_filter would be expected to include absolute paths to each file, is that what you meant for here? I think we can modify this to at least use a path relative to the current project, what do you think?

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