Add karma coverage reporting; added coverage folder to .gitignore
This commit is contained in:
@@ -23,6 +23,7 @@ test/*.js
|
||||
test/*.map
|
||||
website/public/docs
|
||||
*.sublime-workspace
|
||||
coverage
|
||||
coverage.html
|
||||
common/dist/scripts/habitrpg-shared.js
|
||||
|
||||
|
||||
+10
-1
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user