Navigation Menu

Skip to content

Commit

Permalink
Add code coverage using coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHackett committed Apr 21, 2015
1 parent a264f20 commit cb87fb1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
node_modules/
lib-cov/
*.log
*.swp
*.swo
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -3,4 +3,6 @@ node_js:
- "0.12"
- "0.11"
- "0.10"
install: npm install
install: npm install
after_script:
- npm run coveralls
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -12,10 +12,13 @@
"type": "MIT"
},
"devDependencies": {
"coveralls": "^2.11.2",
"jscoverage": "^0.5.9",
"nodeunit": ">= 0.9.0"
},
"scripts": {
"test": "nodeunit test"
"test": "nodeunit test",
"coveralls": "jscoverage lib && NODETELNETCLIENT_COV=1 nodeunit --reporter=lcov test | coveralls"
},
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion test/connect.js
@@ -1,4 +1,6 @@
var telnet = require('../lib/telnet-client');
var telnet = process.env.NODETELNETCLIENT_COV
? require('../lib-cov/telnet-client')
: require('../lib/telnet-client');
var nodeunit = require('nodeunit');
var net = require('net');

Expand Down

0 comments on commit cb87fb1

Please sign in to comment.