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

Set path to coverage/lcov.info file #149

Closed sjworkuid closed 6 years ago

sjworkuid commented 6 years ago

My nyc/istanbul code coverage run puts the lcov.info file in a sub-dir called 'coverage'. How do I tell the extension to look there?

salagadoola commented 6 years ago

By default the 'coverage' directory is included (node_modules is the only directory being excluded).

Try open "Command Palette" > Choose "Coverage Gutters: Display Coverage" to see if coverage shows up. (By default the coverage is not displayed after extension installation. Took me some time to figure it out.)

Open the lcov.info file, then click the "Watch" at the bottom of VS Code.

image

ryanluker commented 6 years ago

hey thanks for creating an issue, @salagadoola is correct currently the glob find looks everywhere, in the project folder, for the name of the coverage file you specify in your settings (defaults to lcov.info) https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L37. If you are still having trouble getting it working, take a look at the debug logs in the output tab for more information.

temp

ryanluker commented 6 years ago

closing this for now but we can reopen it if you are still having issues