Error Could not find a Coverage file!
See original GitHub issueDescribe 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:
[1581480631693][gutters]: Stacktrace Error: Could not find a Coverage file!
at FilesLoader.<anonymous> (/Users/val/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.4.3/out/src/files/filesloader.js:32:27)
at Generator.next (<anonymous>)
at fulfilled (/Users/val/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.4.3/out/src/files/filesloader.js:4:58)
To Reproduce Steps to reproduce the behaviour:
- Installed the extension
- Change
Xmlname
tocoverage.xml
(OR reset the setting and symlinkcoverage.xml
tocov.xml
) - Select
Display Coverage
from the command palette - See error in the output console
Expected behaviour The xml file should load and I should see coverage gutters.
Desktop (please complete the following information):
- OS: OSX Catalina
- Extension Version 2.4.3
- VSCode Version 1.41.1
Additional Context The first few lines of my coverage file are:
<?xml version="1.0" ?>
<coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.06729" lines-covered="94" lines-valid="1397" timestamp="1553549601089" version="4.5.2">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources/>
<packages>
<package branch-rate="0" complexity="0" line-rate="0.07692" name=".Users....
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
python - Coverage-Gutter extension for visual studio code is ...
The error that I'm getting is a message that says "Could not find a Coverage file!" python · python-3.x · visual-studio-code · python-unittest ......
Read more >Cannot open coverage file from Visual Studio 2019 16.2
I recently installed VS2019 Prof 16.2 and experience following error popups (2 popups excaly) when loading .coverage files:
Read more >Python Coverage File Not Found - SonarCloud
My coverage.xml is being created during CI and pushed back to the branch. The file is being created and added as expected, Coverage...
Read more >Adding coverage to your repository - Codacy Quality docs
Generate coverage reports in a supported format and upload them to Codacy to monitor the code coverage of your repositories on Codacy.
Read more >Use code coverage for unit testing - .NET | Microsoft Learn
NET CLI, and it is great for build systems where MSBuild is not available. Below is the example coverage.cobertura.xml file. XML Copy.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.@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?
https://webmshare.com/play/RyoPE