mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: instructions for generating coverage reports
Add instructions for generating code coverage reports to BUILDING.md PR-URL: https://github.com/nodejs/node/pull/15190 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7213be9f59
commit
da5e6d33d5
1 file changed
+19
+19
@@ -128,6 +128,25 @@ To run the tests:
|
||||
$ make test
|
||||
```
|
||||
|
||||
To run the tests and generate code coverage reports:
|
||||
|
||||
```console
|
||||
$ ./configure --coverage
|
||||
$ make coverage
|
||||
```
|
||||
|
||||
This will generate coverage reports for both JavaScript and C++ tests (if you
|
||||
only want to run the JavaScript tests then you do not need to run the first
|
||||
command `./configure --coverage`).
|
||||
|
||||
The `make coverage` command downloads some tools to the project root directory
|
||||
and overwrites the `lib/` directory. To clean up after generating the coverage
|
||||
reports:
|
||||
|
||||
```console
|
||||
make coverage-clean
|
||||
```
|
||||
|
||||
To build the documentation:
|
||||
|
||||
This will build Node.js first (if necessary) and then use it to build the docs:
|
||||
|
||||
Reference in new issue
Block a user