Skip to content

Commit af6e439

Browse files
mhdawsontargos
authored andcommitted
test: enable marking of failing coverage tests
Enable marking of coverage tests so that we can allow some tests to fail without blocking the generation of coverage data. This will later allow us to fail the coverage job if other kinds of errors occur and to capture which tests we believe are not running properly with coverage enabled. PR-URL: #25671 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent f3179f7 commit af6e439

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ coverage-test: coverage-build
226226
$(RM) out/$(BUILDTYPE)/obj.target/node_lib/gen/*.gcda
227227
$(RM) out/$(BUILDTYPE)/obj.target/node_lib/src/*.gcda
228228
$(RM) out/$(BUILDTYPE)/obj.target/node_lib/src/tracing/*.gcda
229-
-NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage $(MAKE) $(COVTESTS)
229+
-NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage \
230+
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)
230231
$(MAKE) coverage-report-js
231232
-(cd out && "../gcovr/scripts/gcovr" --gcov-exclude='.*deps' \
232233
--gcov-exclude='.*usr' -v -r Release/obj.target \
@@ -277,7 +278,7 @@ coverage-run-js:
277278
$(RM) -r out/$(BUILDTYPE)/.coverage
278279
$(MAKE) coverage-build-js
279280
-NODE_V8_COVERAGE=out/$(BUILDTYPE)/.coverage CI_SKIP_TESTS=$(COV_SKIP_TESTS) \
280-
$(MAKE) jstest
281+
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) jstest
281282
$(MAKE) coverage-report-js
282283

283284
.PHONY: test

test/root.status

+4
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,7 @@ sequential/test-inspector-port-cluster: SLOW
159159
sequential/test-net-bytes-per-incoming-chunk-overhead: SLOW
160160
sequential/test-pipe: SLOW
161161
sequential/test-util-debug: SLOW
162+
163+
[$type==coverage]
164+
js-native-api/test_function/test: PASS,FAIL,CRASH
165+
js-native-api/test_general/testFinalizer: PASS,FAIL,CRASH

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ def BuildOptions():
13911391
help='Send SIGABRT instead of SIGTERM to kill processes that time out',
13921392
default=False, action="store_true", dest="abort_on_timeout")
13931393
result.add_option("--type",
1394-
help="Type of build (simple, fips)",
1394+
help="Type of build (simple, fips, coverage)",
13951395
default=None)
13961396
return result
13971397

0 commit comments

Comments
 (0)