From d1dee495db1451e74f5364c8687148a53ff0b50d Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Fri, 18 Jan 2019 13:46:49 -0800 Subject: test: switch to native v8 coverage PR-URL: https://github.com/nodejs/node/pull/25157 Reviewed-By: Anna Henningsen Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Refael Ackermann --- BUILDING.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'BUILDING.md') diff --git a/BUILDING.md b/BUILDING.md index 50f2984d679..b848f777f36 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -290,9 +290,15 @@ $ CI_JS_SUITES=child-process CI_NATIVE_SUITES= make coverage The above command executes tests for the `child-process` subsystem and outputs the resulting coverage report. -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: +Alternatively, for the JavaScript test suite, you can use the `CI_JS_SUITES` +variable to run tests in isolation, outputting reports: + +```text +$ CI_JS_SUITES=fs CI_NATIVE_SUITES= make coverage-run-js +``` + +The `make coverage` command downloads some tools to the project root directory. +To clean up after generating the coverage reports: ```console $ make coverage-clean -- cgit v1.2.3