Run tests with Karma test runner

Closes gh-566.
This commit is contained in:
Nik Butenko
2016-06-16 21:35:03 +10:00
committed by Fagner Brack
parent 967017115b
commit 2c27f31263
5 changed files with 77 additions and 25 deletions

View File

@@ -22,13 +22,18 @@
"url": "https://github.com/bartaz/impress.js/issues"
},
"scripts": {
"lint": "jshint js/impress.js && jscs js/impress.js --preset=jquery",
"test": "chrome test/core_tests.html"
"lint": "jshint js/impress.js *.js test/bootstrap.js && jscs js/impress.js *.js test/bootstrap.js --preset=jquery",
"test": "karma start --single-run",
"test:dev": "karma start"
},
"devDependencies": {
"chrome": "0.1.0",
"jscs": "2.11.0",
"jshint": "2.9.1",
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-cli": "1.0.0",
"karma-qunit": "1.0.0",
"qunitjs": "2.0.0-rc1"
}
}