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 gutters + Visual Studio Code w/ a Java Maven project #356

Closed ohtwadi closed 2 years ago

ohtwadi commented 2 years ago

Hello,

I have a Java Maven project. mvn test generates code coverage report files under \target\site\jacoco directory just fine.

Looking at Coverage Gutters settings in VSC, the coverageBaseDir is set to ** and so it should look at all directories of my project for jacoco.xml. This file exists at \target\site\jacoco\jacoco.xml

When I click the Watch button in bottom toolbar, it says Could not find a Coverage file! Searched for lcov.info, cov.xml, coverage.xml, jacoco.xml

VSC v1.64.2

ryanluker commented 2 years ago

@ohtwadi Thanks for the ticket! Were you able to get your java project setup with maven?

We have an example java maven project in the examples if you want a workable solution. https://github.com/ryanluker/vscode-coverage-gutters/tree/master/example/java

ohtwadi commented 2 years ago

@ryanluker Yes I was able to get it working. Thanks for checking! The problem was between the monitor and the chair :)