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

[Q]: How to collect coverage from a TypeScript codebase? #748

Open
aapzu opened this issue Dec 10, 2024 · 0 comments
Open

[Q]: How to collect coverage from a TypeScript codebase? #748

aapzu opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aapzu
Copy link

aapzu commented Dec 10, 2024

What happened?

I'm trying to collect code coverage from our codebase, that widely uses TypeScript (compiled with ts_project targets). However, I'm not able to get bazel coverage to work with these targets. No matter how much I try, the "$(bazel info output_path)/_coverage/_coverage_report.dat"file is always empty.

I've created a repo with some js and some ts targets. Please find more info on what works for me and what doesn't from the repo: /~https://github.com/aapzu/bazel-coverage-not-working-repro

Version

Development (host) and target OS/architectures:

Output of bazel --version: bazel 7.4.0

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: /~https://github.com/aapzu/bazel-coverage-not-working-repro/blob/main/WORKSPACE

Language(s) and/or frameworks involved: TypeScript, JavaScript

How to reproduce

/~https://github.com/aapzu/bazel-coverage-not-working-repro

Any other information?

No response

@aapzu aapzu added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant