Skip to content

Commit

Permalink
Add test coverage to CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed May 2, 2019
1 parent 9f43853 commit 58c7507
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run unit tests
name: Run unit tests and send coverage results
command: |
./cc-test-reporter before-build
npm test
npm run ci
./cc-test-reporter after-build --exit-code $?
register_image:
<<: *defaults
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"backup": "bin/backup"
},
"scripts": {
"ci": "jest --colors --ci --coverage",
"lint": "eslint --color -c .eslintrc.js --ext js .",
"test": "jest --colors"
},
Expand All @@ -17,13 +18,13 @@
"url": "git+https://github.com/LD4P/sinopia_user_backup.git"
},
"keywords": [
"sinopia",
"aws",
"cognito",
"user",
"backup",
"cognito",
"javascript",
"node",
"javascript"
"s3",
"sinopia"
],
"license": "Apache-2.0",
"bugs": {
Expand Down

0 comments on commit 58c7507

Please sign in to comment.