Skip to content

Commit

Permalink
Move nyc configuration to .nycrc. Exclude tests from getting annotate…
Browse files Browse the repository at this point in the history
…d for coverage
  • Loading branch information
Munter committed Jan 17, 2017
1 parent 532c0b8 commit 8750c3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"reporter": [
"json",
"text-summary"
],
"exclude": [
"lib/browser",
"test/**/*"
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8750c3f

Please sign in to comment.