diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-05-20 18:04:40 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-06-03 16:09:08 +0200 |
commit | 0e66830e6d5f307ef9ba27a65106578854f4bc9e (patch) | |
tree | 9a39de414668efed606ab7f05b1dd25851f5ce7f /server | |
parent | 364cd42b9bb92eb42f0adce613185e0bb8771672 (diff) | |
download | sonarqube-0e66830e6d5f307ef9ba27a65106578854f4bc9e.tar.gz sonarqube-0e66830e6d5f307ef9ba27a65106578854f4bc9e.zip |
use nyc to compute coverage
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/.gitignore | 1 | ||||
-rw-r--r-- | server/sonar-web/package.json | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/.gitignore b/server/sonar-web/.gitignore index 44adb93a2a6..10ecba26bcc 100644 --- a/server/sonar-web/.gitignore +++ b/server/sonar-web/.gitignore @@ -17,3 +17,4 @@ src/main/webapp/WEB-INF/lib/*.jar # tests src/test/json/**/*.png lcov.info +.nyc_output diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index 58ea1221ec9..98bc1baba05 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -46,7 +46,6 @@ "handlebars-loader": "1.1.4", "history": "2.0.0", "imports-loader": "0.6.5", - "isparta": "4.0.0", "jquery": "2.2.0", "jscs": "^2.11.0", "jsdom": "6.5.1", @@ -86,7 +85,7 @@ "build-fast": "gulp build:dev", "build": "gulp build", "test": "mocha --opts tests/mocha.opts src/main/js/**/__tests__/**/*", - "coverage": "babel-node node_modules/.bin/isparta cover --root 'src/main/js' --include-all-sources --excludes '**/libs/**' --dir 'target/coverage' node_modules/.bin/_mocha -- --opts tests/mocha.opts tests", + "coverage": "nyc --exclude tests,**/__tests__/** mocha --opts tests/mocha.opts src/main/js/**/__tests__/**/* && nyc report --reporter lcov --report-dir target/coverage", "lint": "eslint src/main/js && jscs src/main/js", "dev": "NODE_ENV=hot node devServer" }, |