Integrate istanbul for test coverage
This commit is contained in:
committed by
Marc Jansen
parent
6d55e4aa99
commit
7c9795ba35
@@ -12,7 +12,8 @@
|
||||
"install": "node tasks/install.js",
|
||||
"postinstall": "closure-util update",
|
||||
"start": "node tasks/serve.js",
|
||||
"test": "node tasks/test.js"
|
||||
"test": "node tasks/test.js",
|
||||
"test-coverage": "istanbul instrument src -o src_instrumented && mv src src_old && mv src_instrumented src && istanbul cover npm test istanbul && mv src src_instrumented && mv src_old src && istanbul report --root coverage lcov"
|
||||
},
|
||||
"main": "dist/ol.js",
|
||||
"repository": {
|
||||
@@ -38,6 +39,7 @@
|
||||
"devDependencies": {
|
||||
"clean-css": "2.2.16",
|
||||
"expect.js": "0.3.1",
|
||||
"istanbul": "^0.3.13",
|
||||
"jquery": "2.1.1",
|
||||
"jshint": "2.5.6",
|
||||
"mocha": "1.21.5",
|
||||
|
||||
Reference in New Issue
Block a user