Closed valerierose closed 4 years ago
@valerierose Thank you for submitting an issue! This might be an issue with using the old config setting for xmlname. Can you switch to using the new config setting and seeing if that fixes anything?
"coverage-gutters.coverageFileNames": [
"lcov.info",
"ADDFILENAMEHERE.xml",
"coverage.xml",
"jacoco.xml"
],
my co-worker had "coverage-gutters.manualCoverageFilePaths": ["build/reports/jacoco/test/jacocoTestReport.xml"],
and it worked for him but not me.
I added "jacocoTestReport.xml"
to "coverage-gutters.coverageFileNames"
and I was in business, thanks!
I'm on WSL, he's on Linux, maybe that's why? Maybe different versions of the extension? 🤷♂️
@spottedmahn thanks for the extra info! manualCoverageFilePaths
is a last resort feature to allow developers to explicitly define an absolute path to their coverage files. coverageFileNames
has a lot more smarts for finding any coverage file with a given name for all open workspaces.
coverageFileNames
has a lot more smarts for finding any coverage file with a given name for all open workspaces.
gotcha, so my co-worker is wrong 😜
is this documented in a wiki or readme? happy to contribute to the docs. thanks for creating the great extension!!
@spottedmahn it is vaguely mentioned in the package.json (which shows up in the editor UI) but adding to the tips and tricks section on the readme would be great!
@valerierose going to close this issue for now but more then willing to open again if you can try out https://github.com/ryanluker/vscode-coverage-gutters/issues/254#issuecomment-590129412 and let me know if that helps
@valerierose Thank you for submitting an issue! This might be an issue with using the old config setting for xmlname. Can you switch to using the new config setting and seeing if that fixes anything?
"coverage-gutters.coverageFileNames": [ "lcov.info", "ADDFILENAMEHERE.xml", "coverage.xml", "jacoco.xml" ],
Hi, could you add jacocoTestReport.xml into default settings? since it's default name for gradle + jacoco set up.
@valerierose Thank you for submitting an issue! This might be an issue with using the old config setting for xmlname. Can you switch to using the new config setting and seeing if that fixes anything?
"coverage-gutters.coverageFileNames": [ "lcov.info", "ADDFILENAMEHERE.xml", "coverage.xml", "jacoco.xml" ],
Hi, could you add jacocoTestReport.xml into default settings? since it's default name for gradle + jacoco set up.
For sure we can add more defaults, we just need the exact name and a PR similar to this one https://github.com/ryanluker/vscode-coverage-gutters/pull/429
Describe the bug I have coverage.xml in my root folder and neither changing the setting nor symlinking cov.xml to coverage.xml will pick it up. No matter what I try, I get the error:
To Reproduce Steps to reproduce the behaviour:
Xmlname
tocoverage.xml
(OR reset the setting and symlinkcoverage.xml
tocov.xml
)Display Coverage
from the command paletteExpected behaviour The xml file should load and I should see coverage gutters.
Desktop (please complete the following information):
Additional Context The first few lines of my coverage file are: