ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Coverage information applied to multiple files #156

Closed davidbrownell closed 6 years ago

davidbrownell commented 6 years ago

Using v2.1.0.

Coverage information is generated for one file in cov.xml file (in this case, the file is named Validate.py). When I open Validate.py, I see the correct coverage information displayed. However, opening some files that are siblings with Validate.py also display Validate.py's coverage information. Interestingly, some siblings don't display this coverage information.

Abbreviated Source Tree:

<root>/src/Schema/Impl/Resolve.py [Coverage information displayed, NOT expected]
<root>/src/Schema/Impl/Validate.py [Coverage information displayed, expected]
<root>/src/Schema/Impl/UnitTests/Populate_UnitTest.py [Coverage information NOT displayed, expected]
<root>/src/Schema/Impl/UnitTests/Resolve_UnitTest.py [Coverage information displayed, NOT expected]
<root>/src/Schema/Impl/UnitTests/Validate_UnitTest.py [Coverage information displayed, NOT expected]
<root>/src/Schema/Exceptions.py [Coverage information displayed, NOT expected]
/Cov.xml (abbreviated): ``` C:\Code\v3\Common\SimpleSchemaGenerator ``` VSCode opened at `````` Thanks for the help!
ryanluker commented 6 years ago

@davidbrownell Thanks for submitting an issue. Hmm this is an interesting one, I will have to make a more complicated python example project in order to reproduce this one.

davidbrownell commented 6 years ago

This issue appears to be resolved in 2.1.1. Thanks!