From 8198ca0b268d765a4c8b0b3e784abc4c8857824b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 30 Jan 2019 21:16:07 -0800 Subject: [PATCH] tools: exclude benchmark code from coverage report Refs: https://github.com/nodejs/build/issues/1676#issuecomment-459218651 PR-URL: https://github.com/nodejs/node/pull/25841 Reviewed-By: Richard Lau Reviewed-By: Ben Coe Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson Reviewed-By: Refael Ackermann Reviewed-By: Anna Henningsen --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db8a623553bbf3..da159b6859607f 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,7 @@ coverage-test: coverage-build COV_REPORT_OPTIONS = --reporter=html \ --temp-directory=out/$(BUILDTYPE)/.coverage --omit-relative=false \ - --resolve=./lib --exclude="deps/" --exclude="test/" --exclude="tools/" \ + --resolve=./lib --exclude="benchmark/" --exclude="deps/" --exclude="test/" --exclude="tools/" \ --wrapper-length=0 ifdef COV_ENFORCE_THRESHOLD COV_REPORT_OPTIONS += --check-coverage --lines=$(COV_ENFORCE_THRESHOLD)