Skip to content

Commit 86155d1

Browse files
author
tunnckoCore
committed
add istanbul coverage
1 parent 64305d5 commit 86155d1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ node_js:
44
- "iojs"
55
- "0.10"
66
- "0.11"
7-
- "0.12"
7+
- "0.12"
8+
script: "npm run-script test-travis"
9+
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls"

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "1.0.1",
44
"description": "100% twitter compatible `@mentions` regex! Regular expression for matching `@username` mentions, as used on twitter, facebook, github, etc.",
55
"scripts": {
6-
"lint": "jshint index.js && jscs index.js --reporter inline",
7-
"test": "mocha"
6+
"test": "mocha",
7+
"test-cov": "istanbul cover _mocha",
8+
"test-travis": "istanbul cover _mocha --report lcovonly"
89
},
910
"author": {
1011
"name": "Charlike Mike Reagent",
@@ -38,6 +39,7 @@
3839
},
3940
"dependencies": {},
4041
"devDependencies": {
42+
"istanbul": "~0.3.11",
4143
"mocha": "~2.2.1"
4244
}
4345
}

0 commit comments

Comments
 (0)