From 8750c3f5fb507018ac780ea4992a6191c494e2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Tue, 17 Jan 2017 22:18:59 +0100 Subject: [PATCH] Move nyc configuration to .nycrc. Exclude tests from getting annotated for coverage --- .nycrc | 10 ++++++++++ Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .nycrc diff --git a/.nycrc b/.nycrc new file mode 100644 index 0000000000..8848fa90fd --- /dev/null +++ b/.nycrc @@ -0,0 +1,10 @@ +{ + "reporter": [ + "json", + "text-summary" + ], + "exclude": [ + "lib/browser", + "test/**/*" + ] +} diff --git a/Makefile b/Makefile index 8a9662d98c..c7d9e8a342 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ NYC := "node_modules/.bin/nyc" ifdef COVERAGE define test_node - $(NYC) --report-dir coverage/reports/$(1) --reporter json --exclude browser $(MOCHA) + $(NYC) --report-dir coverage/reports/$(1) $(MOCHA) endef else test_node := $(MOCHA)