Skip to content

Commit

Permalink
add coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed Jun 23, 2015
1 parent f772248 commit 0be0cf8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
lib
test
.DS_Store
coverage
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ node_js:
- "0.10"
- "0.12"
- "iojs"
before_install:
- "npm install"
- "npm run build"
script: "npm run coverage"
after_success: "npm run push-coverage"
services:
- mongodb
notifications:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ht-auth

[![Build Status](https://travis-ci.org/hudson-taylor/ht-auth.svg?branch=master)](https://travis-ci.org/hudson-taylor/ht-auth)
[![Coverage Status](https://img.shields.io/coveralls/hudson-taylor/ht-auth/master.svg)](https://coveralls.io/r/hudson-taylor/ht-auth?branch=master)

`ht-auth` is a Hudson-Taylor service for managing users and authentication. It encapsulates best-practice for handling sensitive user information and logins.

Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
"devDependencies": {
"babel": "^5.6.4",
"bcrypt": "^0.8.0",
"mocha": "^2.1.0"
"coveralls": "^2.11.2",
"istanbul": "^0.3.15",
"mocha": "^2.2.5"
},
"scripts": {
"test": "npm run build && mocha -R spec --check-leaks --throw-deprecation",
"build": "node ./node_modules/babel/bin/babel src -d lib && node ./node_modules/babel/bin/babel test-src -d test"
"test": "npm run build && mocha -R spec --check-leaks --throw-deprecation --bail test/",
"build": "node ./node_modules/babel/bin/babel src -d lib && node ./node_modules/babel/bin/babel test-src -d test",
"coverage": "npm run build && ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --ui bdd --recursive -R spec -t 5000",
"push-coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"prepublish": "npm run build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0be0cf8

Please sign in to comment.