question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Could not find a Coverage file!

See original GitHub issue

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:

[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:

  1. Installed the extension
  2. Change Xmlname to coverage.xml (OR reset the setting and symlink coverage.xml to cov.xml)
  3. Select Display Coverage from the command palette
  4. 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanlukercommented, Mar 1, 2020

@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.

1reaction
ryanlukercommented, Feb 23, 2020

@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"
    ],

https://webmshare.com/play/RyoPE

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found