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

Coverage not generated with ts_project #2762

Closed
subnova opened this issue Jun 10, 2021 · 1 comment · Fixed by #2763
Closed

Coverage not generated with ts_project #2762

subnova opened this issue Jun 10, 2021 · 1 comment · Fixed by #2763

Comments

@subnova
Copy link
Contributor

subnova commented Jun 10, 2021

🐞 bug report

Affected Rule

ts_project

Is this a regression?

Regression between ts_library and ts_project.

Description

Coverage reports are not generated when (test) code is built using ts_project.

🔬 Minimal Reproduction

The issue is demonstrated by the repository https://github.com/subnova/coverage_test (minus the patch that resolves the issue).

🌍 Your Environment

Operating System:

  
    System Version:	macOS 10.15.7 (19H1217)
    Kernel Version:	Darwin 19.6.0
  

Output of bazel version:

  
Build label: 4.0.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Jan 21 07:38:50 2021 (1611214730)
Build timestamp: 1611214730
Build timestamp as int: 1611214730
  

Rules_nodejs version:

(Please check that you have matching versions between WORKSPACE file and @bazel/* npm packages.)

  
3.5.1
  
subnova added a commit to subnova/rules_nodejs that referenced this issue Jun 10, 2021
twheys pushed a commit to twheys/rules_nodejs that referenced this issue Jan 13, 2022
@Toxicable
Copy link

If anyone comes accross this, you may also need to enable:
tsconfig: inlineSourceMap, inlineSources
.bazelrc: coverage --instrument_test_targets --experimental_forward_instrumented_files_info_by_default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants