Skip to content

Commit 92912ef

Browse files
committedAug 4, 2014
Added linting and test coverage
1 parent 27c0d91 commit 92912ef

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed
 

‎.coveralls.yml

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

‎.jshintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

‎package.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@
1313
"test": "test"
1414
},
1515
"scripts": {
16-
"test": "mocha",
17-
"travis": "npm run test"
16+
"lint": "jshint .",
17+
"test": "npm run lint && mocha",
18+
"travis": "npm run lint && npm run coverage && <coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js",
19+
"coverage": "NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot"
1820
},
1921
"repository": {
2022
"type": "git",
2123
"url": "git@github.com:RndPhrase/cubehash.js.git"
2224
},
2325
"devDependencies": {
24-
"mocha": "*"
26+
"coveralls": "^2.11.1",
27+
"istanbul": "^0.3.0",
28+
"jshint": "^2.5.2",
29+
"mocha": "^1.21.3",
30+
"mocha-lcov-reporter": "0.0.1"
2531
},
2632
"testling": {
2733
"harness": "mocha",

0 commit comments

Comments
 (0)
Please sign in to comment.