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

Add the option to not show coverage gutters when the exactness score is too low #147

Closed
AlCalzone opened this issue Jul 19, 2018 · 3 comments

Comments

@AlCalzone
Copy link

AlCalzone commented Jul 19, 2018

In my project I store the test files (*.test.ts) side-by-side with the files to be tested (*.ts). Naturally, the test files don't have any coverage associated with them.

However, when opening them, coverage-gutters tries to find the best match and selects a completely unrelated coverage to display:
coverage
I'd prefer if for such low exactness score no coverage would be displayed instead (or made optional), because now the test files are riddled with a bunch of red bars in weird locations:
coverage2

@ryanluker
Copy link
Owner

@AlCalzone Thanks for the issue, I am looking into this issue this weekend. I am planning to either make a feature to not render coverage if less then a certain score or remove the scoring feature and go back to relative path determination for coverage showing.

@ryanluker
Copy link
Owner

@AlCalzone removed the correctness with #152 in favour of relative pathing, this will be out in a release later today!

@AlCalzone
Copy link
Author

Great, looking forward to it. Thanks for resolving it so quickly

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

No branches or pull requests

2 participants