aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/package.json
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-30 15:45:27 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-30 16:22:26 +0200
commit0a325ad503de115158a31306f69d65cf0a06b167 (patch)
treefbee1c0237e45891f33f057818cc5ec4673460ff /server/sonar-web/package.json
parentca6ca4fa7940921fcdc2b24b4e0d589d38c2992c (diff)
downloadsonarqube-0a325ad503de115158a31306f69d65cf0a06b167.tar.gz
sonarqube-0a325ad503de115158a31306f69d65cf0a06b167.zip
add coverage reporting for web tests
Diffstat (limited to 'server/sonar-web/package.json')
-rw-r--r--server/sonar-web/package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index 0aede03a2f9..c6de70b2cfe 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -23,6 +23,7 @@
"grunt-rename": "^0.1.4",
"grunt-text-replace": "0.4.0",
"intern": "3.0.0",
+ "isparta": "^3.0.4",
"jit-grunt": "0.9.1",
"jquery": "2.1.4",
"jsdom": "^6.5.1",
@@ -36,6 +37,7 @@
"scripts": {
"build-fast": "./node_modules/.bin/grunt build-fast",
"build": "./node_modules/.bin/grunt build",
- "test": "./node_modules/.bin/mocha --opts tests/mocha.opts tests"
+ "test": "./node_modules/.bin/mocha --opts tests/mocha.opts tests",
+ "coverage": "./node_modules/.bin/babel-node ./node_modules/.bin/isparta cover --dir './target/coverage' --include '**/*.js' --include '**/*.jsx' ./node_modules/.bin/_mocha -- --opts tests/mocha.opts tests"
}
}