Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Add test coverage report (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and nchen63 committed Apr 5, 2017
1 parent db83bfa commit 888845b
Show file tree
Hide file tree
Showing 5 changed files with 750 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ typings/.basedir.ts

docs/_data/rules.json
docs/rules/*/index.html

/coverage/
/.nyc_output
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ yarn.lock
/src/
/test/
tscommand*.txt
/coverage/
/.nyc_output
17 changes: 17 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"include": [
"build/**/*.js"
],
"extension": [
".js"
],
"exclude": [
"build/test"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"all": true
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"test:pre": "cd ./test/config && npm install",
"test:mocha": "mocha --reporter spec --colors \"build/test/**/*Tests.js\"",
"test:rules": "node ./build/test/ruleTestRunner.js",
"verify": "npm-run-all clean compile lint test docs"
"verify": "npm-run-all clean compile lint test docs",
"coverage": "rimraf coverage .nyc_output && nyc npm test"
},
"dependencies": {
"babel-code-frame": "^6.22.0",
Expand Down Expand Up @@ -67,6 +68,7 @@
"js-yaml": "^3.7.0",
"mocha": "^3.2.0",
"npm-run-all": "^3.1.0",
"nyc": "^10.2.0",
"rimraf": "^2.5.4",
"tslint": "latest",
"tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative",
Expand Down
Loading

0 comments on commit 888845b

Please sign in to comment.