From e81516ca8020e2ab96aee2859f0200d92108cc3e Mon Sep 17 00:00:00 2001 From: Austin Schaffer Date: Fri, 31 Jan 2020 14:12:52 -0500 Subject: [DEV-6721] Add optional code coverage --- Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 9e0d6f8..2e7a45f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -67,10 +67,11 @@ check-ts-out: test: check check: $(tsout) check-ts-out - PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \ - mocha @NODE_DESTRUCTURE@ \ + PATH="$(PATH):$(CURDIR)/node_modules/.bin" \ + @CODE_COV@ mocha @NODE_DESTRUCTURE@ \ --require $(path_test)/pre.js \ --recursive \ + @COV_ARGS@ \ $(TESTARGS) FORCE: -- cgit v1.2.1