CesiumGS / CesiumGS/cesium

Running coverage locally shows empty coverage report

Open
#10,641 8 comments 0 reactions 0 assignees View on GitHub
category - packaging & tooling type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

As tested on 9b986ab79a00d9a0119985142362f45e4eb8e27c on the `main` branch, in a clean repository, ran the following commands:

```bash
npm install
npm run build
npm run coverage
```
The terminal log showed that all the tests ran and that that `coverage` task completed in 2 minutes, however, the report opened up as empty:
![image](https://user-images.githubusercontent.com/5172619/183129115-68c938e0-5dd5-4e9c-a996-34a9d424671a.png)

This does not seem to be a problem [in CI](http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/main/Build/Coverage/Firefox%20103.0%20(Linux%20x86_64)/index.html).

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a clean repository with npm install, npm run build, and npm run coverage. Then inspect the coverage task and compare the local report with the CI coverage report linked in the issue. Done means the local report contains coverage data instead of opening empty.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.