Code coverage not working: Test file "../coverage-00000000-0.xml" not found

Open
#430 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php, typescript, vscode

Research direction

Reproduce the failure in the listed VSCodium, PHP, PHPUnit, and Linux environment using phpunit.xml and tests/heloWorldTest.php. Start from the code coverage run and its Output channel log, then verify in the Test Results Tab that coverage no longer refers to the missing ../coverage-00000000-0.xml file and that tests still run normally.

Written by the indexing model from the issue text.

Description

bug
What happened?

The code coverage feature in this extension is not working. I was working before. Running tests without code coverage or with the debugger works fine.

Steps to reproduce
  1. Open PHP project in VSCodium
  2. Run test with code coverage
  3. Get error in Test Results Tab...
Extension settings
No settings were applied
Output channel log
🚀 PHPUnit 12.5.34 by Sebastian Bergmann and contributors.

❌ PHPUnit 12.5.34 by Sebastian Bergmann and contributors.

Test file "../coverage-00000000-0.xml" not found
Environment
  • OS: Linux Mint
  • VS Code version: VSCodium 1.126.04524
  • Extension version: 3.9.40
  • PHP version: 8.3.6
  • PHPUnit / Pest version: 12.2
Project structure (if relevant)
project/
---phpunit.xml
---src
---vendor
---tests
------heloWorldTest.php
Dominant language
TypeScript
Stars
169
Forks
72
Avg merge
8m
Merged PRs (30d)
184

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from recca0120/vscode-phpunit

All issues in recca0120/vscode-phpunit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.