build,test: fail `coverage` target if tests fail
Part of fix for https://github.com/nodejs/node/issues/24966
Make the coverage-test
target fail if running the tests fail. This way we get early warning that something is borked and we don't publish spurious results.
/CC @nodejs/build-files @nodejs/benchmarking @nodejs/testing
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines