Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty code coverage (vscode development) #234754

Open
rwalle opened this issue Nov 27, 2024 · 0 comments
Open

Empty code coverage (vscode development) #234754

rwalle opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
engineering VS Code - Build / issue tracking / etc.

Comments

@rwalle
Copy link

rwalle commented Nov 27, 2024

I was trying to understand VSCode code structure and testing philosophy, and tried to get code coverage on Linux according to the instructions:

https://github.com/microsoft/vscode/blob/main/test/unit/README.md#os-x-and-linux

I got here by following the links in Wiki:

Writing Tests -> Unit Tests (in the sentence "Tests can be run manually on the command line, see the instructions here.")

However I got empty coverage result. It seems that test.sh does not have any logic around handling the --coverage flag.

My guess is that the instructions are outdated, and manual coverage collection requires a different process?

Does this issue occur when all extensions are disabled?: N/A

  • VS Code Version: N/A, git commit at 67a68e1
  • OS Version: Debian 12

Steps to Reproduce:

  1. run ./scripts/test.sh --coverage
  2. examine ./build/coverage/index.html
@connor4312 connor4312 added the engineering VS Code - Build / issue tracking / etc. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering VS Code - Build / issue tracking / etc.
Projects
None yet
Development

No branches or pull requests

2 participants