Skip to content

Add code coverage for unit tests running in node#20658

Merged
timvandermeij merged 1 commit intomozilla:masterfrom
calixteman:node_coverage
Feb 14, 2026
Merged

Add code coverage for unit tests running in node#20658
timvandermeij merged 1 commit intomozilla:masterfrom
calixteman:node_coverage

Conversation

@calixteman
Copy link
Contributor

It's a first step to add code coverage.
In order to get the code coverage report locally, you can run the following command:

npx gulp unittestcli --coverage

The code coverage report will be generated in the ./build/coverage directory. And the report can be consulted by opening:
http://localhost:8888/build/coverage/index.html

A GitHub workflow has also been added to run the unit tests with code coverage on each push and pull request. The report will be uploaded to Codecov.

It's a first step to add code coverage.
In order to get the code coverage report locally, you can run the following command:
```bash
npx gulp unittestcli --coverage
```
The code coverage report will be generated in the `./build/coverage` directory.
And the report can be consulted by opening:
  http://localhost:8888/build/coverage/index.html

A GitHub workflow has also been added to run the unit tests with code coverage
on each push and pull request. The report will be uploaded to Codecov.
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@timvandermeij timvandermeij linked an issue Feb 14, 2026 that may be closed by this pull request
Copy link
Contributor

@timvandermeij timvandermeij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Let's see how this goes; thanks!

(Related to #8632.)

@timvandermeij timvandermeij merged commit b6d0284 into mozilla:master Feb 14, 2026
12 checks passed
@calixteman calixteman deleted the node_coverage branch February 14, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants