Skip to content

Conversation

@fatkodima
Copy link
Contributor

Closes #710.

https://bugs.ruby-lang.org/issues/15022

We use coverage on CI and I noticed that it significantly slows down the tests. After experimenting with oneshot_lines coverage mode, the runtime dropped a lot (it was 15 minutes before and now is 10 minutes).

def process_coverage_result
adapt_coverage_result
remove_useless_results
adapt_coverage_result
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this PR, Coverage.stub_line is used, which is a pretty costly method. So I swapped lines here to filter unneeded files first before doing the actual work.

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.

Feature request: Add Ruby 2.6 Oneshot ability

1 participant