Skip to content

Commit 1368735

Browse files
montesluwarbrett
authored andcommitted
Use mocha, istanbul, and coveralls (brianc#16)
* some tests * coveralls and mocha * coveralls post test hook * remove done calls
1 parent cf107b0 commit 1368735

File tree

5 files changed

+188
-202
lines changed

5 files changed

+188
-202
lines changed

.coveralls.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-pro
2+
repo_token: 5F6dODinz9L9uFR6HatKmtsYDoV1A5S2N

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_js:
33
- '0.10'
44
- '6.9'
55
- '8'
6+
after_success: 'npm run coveralls'

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
pg-connection-string
22
====================
33

4+
[![NPM](https://nodei.co/npm/pg-connection-string.png?compact=true)](https://nodei.co/npm/pg-connection-string/)
5+
46
[![Build Status](https://travis-ci.org/iceddev/pg-connection-string.svg?branch=master)](https://travis-ci.org/iceddev/pg-connection-string)
7+
[![Coverage Status](https://coveralls.io/repos/iceddev/pg-connection-string/badge.svg?branch=master)](https://coveralls.io/r/iceddev/pg-connection-string?branch=master)
58

69
Functions for dealing with a PostgresSQL connection string
710

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "./index.js",
66
"types": "./index.d.ts",
77
"scripts": {
8-
"test": "tap ./test"
8+
"test": "istanbul cover _mocha && npm run check-coverage",
9+
"check-coverage": "istanbul check-coverage --statements 100 --branches 100 --lines 100 --functions 100",
10+
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
911
},
1012
"repository": {
1113
"type": "git",
@@ -25,6 +27,8 @@
2527
"homepage": "https://github.com/iceddev/pg-connection-string",
2628
"dependencies": {},
2729
"devDependencies": {
28-
"tap": "^10.3.3"
30+
"chai": "^4.1.1",
31+
"istanbul": "^0.4.5",
32+
"mocha": "^3.5.0"
2933
}
3034
}

0 commit comments

Comments
 (0)