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
454 stars 88 forks source link

Where does the watcher look for the lcov.info file? #427

Closed Leonardo-Ferreira closed 10 months ago

Leonardo-Ferreira commented 10 months ago

I have a dotnet solution and I followed the tutorial. After running the tests on the .Net Test Explorer the lcov.info appear under solutionRoot/Test/MyProject.Test/lcov.info but for some reason the watcher still report No Coverage.

Looking at the output I have:

[1695781189249][coverageservice]: LOADING
[1695781190065][coverageservice]: Loading 1 file(s)
[1695781190065][coverageservice]: {project root folder where lcov file is present}/lcov.info
[1695781190066][coverageservice]: Loaded 1 data file(s)
[1695781190116][coverageservice]: Caching 142 coverage(s)
[1695781190116][coverageservice]: READY
[1695781190116][coverageservice]: RENDERING
[1695781190116][coverageservice]: READY
[1695781190116][coverageservice]: Listening to file system at {root folder}/**/{lcov.info,cov.xml,coverage.xml,jacoco.xml,coverage.cobertura.xml}

I have tested the file on https://lcov-viewer.netlify.app and it shows the expect result, so the file is correct...

I have tested moving the file to several other folders without luck...

Im using the latest version of the extension and the latest version of VS Code, and im running on macOS Ventura...

Leonardo-Ferreira commented 10 months ago

Please ignore, my understanding was wrong... the "No Coverage" meant that the file I was looking at had no coverage, not that "no coverage" was found for the whole solution

ryanluker commented 8 months ago

@Leonardo-Ferreira Glad to hear you found a solution! We definitely could update this language to be more specific though to avoid future confusion 🤔.