diff --git a/Makefile b/Makefile index 9fcf7e08701773..7ab4a3c70f6e7b 100644 --- a/Makefile +++ b/Makefile @@ -226,7 +226,8 @@ coverage-test: coverage-build $(RM) out/$(BUILDTYPE)/obj.target/node_lib/gen/*.gcda $(RM) out/$(BUILDTYPE)/obj.target/node_lib/src/*.gcda $(RM) out/$(BUILDTYPE)/obj.target/node_lib/src/tracing/*.gcda - -NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage $(MAKE) $(COVTESTS) + -NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage \ + TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS) $(MAKE) coverage-report-js -(cd out && "../gcovr/scripts/gcovr" --gcov-exclude='.*deps' \ --gcov-exclude='.*usr' -v -r Release/obj.target \ @@ -277,7 +278,7 @@ coverage-run-js: $(RM) -r out/$(BUILDTYPE)/.coverage $(MAKE) coverage-build-js -NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage CI_SKIP_TESTS=$(COV_SKIP_TESTS) \ - $(MAKE) jstest + TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) jstest $(MAKE) coverage-report-js .PHONY: test diff --git a/test/root.status b/test/root.status index e5dd389cae0424..6d5bc44491c310 100644 --- a/test/root.status +++ b/test/root.status @@ -159,3 +159,7 @@ sequential/test-inspector-port-cluster: SLOW sequential/test-net-bytes-per-incoming-chunk-overhead: SLOW sequential/test-pipe: SLOW sequential/test-util-debug: SLOW + +[$type==coverage] +js-native-api/test_function/test: PASS,FAIL,CRASH +js-native-api/test_general/testFinalizer: PASS,FAIL,CRASH diff --git a/tools/test.py b/tools/test.py index 56b1c8d650bc4f..4ac8d0e631ce16 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1391,7 +1391,7 @@ def BuildOptions(): help='Send SIGABRT instead of SIGTERM to kill processes that time out', default=False, action="store_true", dest="abort_on_timeout") result.add_option("--type", - help="Type of build (simple, fips)", + help="Type of build (simple, fips, coverage)", default=None) return result