Skip to content

Commit

Permalink
Merge pull request #133 from JaKXz/chore/nyc-excludes
Browse files Browse the repository at this point in the history
Exclude tests from coverage results and instrument all files
  • Loading branch information
mathieudutour authored Jun 23, 2016
2 parents 443e0ac + ba4eee4 commit 1b86ac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lint:

test: lint
echo " $(P) Testing"
NODE_ENV=test $(BIN_DIR)/nyc $(BIN_DIR)/ava $(TEST_TARGET)
NODE_ENV=test $(BIN_DIR)/nyc --all $(BIN_DIR)/ava $(TEST_TARGET)

test-watch:
echo " $(P) Testing forever"
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@
"scripts": {
"test": "make test",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
},
"nyc": {
"exclude": [
"tests/**"
]
}
}

0 comments on commit 1b86ac9

Please sign in to comment.