Skip to content

Commit 090fa50

Browse files
committed
Merge pull request #41 from bem/coverage
Use coverage testing
2 parents e0a94d7 + ef0d50f commit 090fa50

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
.DS_Store
3+
coverage/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# html-differ [![Build Status](https://travis-ci.org/bem/html-differ.svg)](https://travis-ci.org/bem/html-differ)
1+
# html-differ [![Build Status](https://travis-ci.org/bem/html-differ.svg)](https://travis-ci.org/bem/html-differ) [![Coverage Status](https://img.shields.io/coveralls/bem/html-differ.svg)](https://coveralls.io/r/bem/html-differ)
22

33
Сompares two ```html-files```.
44

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"url": "git://github.com/eGavr/html-differ.git"
2424
},
2525
"scripts": {
26-
"test": "mocha test"
26+
"test": "npm run func-test && npm run cover",
27+
"func-test": "mocha test",
28+
"cover": "istanbul cover _mocha -- test"
2729
},
2830
"dependencies": {
2931
"vow": "0.4.3",
@@ -33,7 +35,8 @@
3335
"coa": "0.4.0",
3436
"diff": "1.0.8",
3537
"colors": "0.6.2",
36-
"lodash": "2.4.1"
38+
"lodash": "2.4.1",
39+
"istanbul": "0.3.0"
3740
},
3841
"devDependencies": {
3942
"mocha": "1.18.2",

0 commit comments

Comments
 (0)