Add karma coverage reporting; added coverage folder to .gitignore

This commit is contained in:
Kevin Gisi
2015-06-09 03:36:44 -04:00
parent 2b846e88a8
commit 9795fda951
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@ test/*.js
test/*.map
website/public/docs
*.sublime-workspace
coverage
coverage.html
common/dist/scripts/habitrpg-shared.js
+10 -1
View File
@@ -98,8 +98,17 @@ module.exports = function(config) {
// - IE (only Windows)
browsers: ['PhantomJS'],
preprocessors: {
'website/public/js/**/*.js': ['coverage']
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/karma'
},
// Enable mocha-style reporting, for better test visibility
reporters: ['mocha'],
reporters: ['mocha', 'coverage'],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
+1
View File
@@ -95,6 +95,7 @@
"karma-chai-plugins": "~0.1.0",
"karma-chrome-launcher": "~0.1.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma-coverage": "^0.3.1",
"karma-firefox-launcher": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-jasmine": "~0.1.3",