Skip to content

Commit

Permalink
Added test results
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesgeek committed Feb 4, 2016
1 parent aa6a428 commit 2e84fbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

coverage
test-results.xml
6 changes: 5 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ dependencies:
pre:
- nvm use 5
- nvm alias default 5
- npm install -g npm
- npm install -g npm
test:
post:
- cp test-results.xml $CIRCLE_TEST_REPORTS
- cp -R coverage/* "$CIRCLE_TEST_REPORTS"
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
"url": "[email protected]:daviesgeek/git-revision.git"
},
"scripts": {
"test": "node_modules/.bin/mocha"
"test": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R mocha-junit-reporter"
},
"license": "MIT",
"engines": {
"node": ">=0.12"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^2.4.5"
"istanbul": "^0.4.2",
"mocha": "^2.4.5",
"mocha-junit-reporter": "^1.9.1"
}
}

0 comments on commit 2e84fbb

Please sign in to comment.