summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-12-11 14:53:50 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-12-11 14:53:56 +0100
commiteca1f588185032eda81158c53cc024f81c68974b (patch)
tree96dcf07e4f627a3e40c604c18f7bc10d3ca9b510 /sonar-server
parent56545efc9e158b50e19f7432990e301a8a5b3822 (diff)
downloadsonarqube-eca1f588185032eda81158c53cc024f81c68974b.tar.gz
sonarqube-eca1f588185032eda81158c53cc024f81c68974b.zip
Add script to run JS tests (sonar-server$ npm install && npm test)
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/package.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-server/package.json b/sonar-server/package.json
index fefb5024205..ef25aa164bb 100644
--- a/sonar-server/package.json
+++ b/sonar-server/package.json
@@ -3,10 +3,16 @@
"version": "0.0.1",
"devDependencies": {
"qunitjs": "*",
- "karma": "0.10.8",
+ "karma": "~0.10.8",
"karma-qunit": "*",
"karma-phantomjs-launcher": "*",
"karma-coverage": "*",
"karma-junit-reporter": "*"
+ },
+ "engines": {
+ "node": "~0.8 || ~0.10"
+ },
+ "scripts": {
+ "test": "./node_modules/.bin/karma start --single-run"
}
}