Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Set up code coverage with nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Schlitzer authored and bkircher committed Jul 19, 2017
1 parent aa5100e commit 15807a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

# Coverage report
coverage
16 changes: 16 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"include": [
"src/**/*.ts",
"out/src/**/*.js"
],
"exclude": [
"test/index.ts",
"test/**/*.test.ts"
],
"reporter": [
"text-summary",
"html"
],
"cache": true,
"sourceMap": true
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@
"watch": "tsc -watch -p ./",
"test": "npm run compile && mocha",
"lint": "tslint src/*.ts test/*.ts",
"coverage": "nyc mocha",
"report": "nyc report",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
Expand Down

0 comments on commit 15807a6

Please sign in to comment.