Skip to content

Commit

Permalink
chore(build): add coverage reports to karma setup and update jasmine
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzmyr committed Aug 26, 2014
1 parent 1aaad77 commit 9e736c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
9 changes: 8 additions & 1 deletion karma.conf.js
Expand Up @@ -9,11 +9,18 @@ module.exports = function(config) {
'lib/angular-facebook-phonegap.js',
'test/unit/*.spec.js'
],
preprocessors: {
'lib/*.js': ['coverage']
},
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
exclude: [],
port: 8080,
logLevel: config.LOG_INFO,
autoWatch: true,
reporters: ['progress', 'dots'],
reporters: ['progress', 'dots', 'coverage'],
browsers: ['Chrome'],
singleRun: false
});
Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -27,16 +27,17 @@
"devDependencies": {
"karma": "~0.12.19",
"bower": "~1.3.8",
"gulp-jshint": "~1.8.3",
"gulp": "~3.8.7",
"gulp-jshint": "~1.8.3",
"gulp-watch": "~0.6.9",
"gulp-karma": "0.0.4",
"gulp-util": "~3.0.0",
"karma-jasmine": "~0.1.5",
"gulp-connect": "~2.0.6",
"karma-jasmine": "~0.2.0",
"karma-chrome-launcher": "~0.1.4",
"karma-phantomjs-launcher": "~0.1.4",
"karma-coverage": "~0.2.6",
"jshint-stylish": "~0.4.0",
"protractor": "~1.1.1",
"gulp-connect": "~2.0.6"
"protractor": "~1.1.1"
}
}

0 comments on commit 9e736c6

Please sign in to comment.