Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Move nyc configuration to .nycrc. Exclude tests from getting annotated for coverage

Peter Müller8750c3f5fb50
diff --git a/.nycrc b/.nycrc
new file mode 100644
index 00000000..8848fa90
--- /dev/null
+++ b/.nycrc
@@ -0,0 +1,10 @@
+{
+ "reporter": [
+ "json",
+ "text-summary"
+ ],
+ "exclude": [
+ "lib/browser",
+ "test/**/*"
+ ]
+}
diff --git a/Makefile b/Makefile
index 8a9662d9..c7d9e8a3 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)