Skip to content

Commit

Permalink
enable karma-coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Apr 23, 2018
1 parent 48e6fde commit 6ce9c3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = function(config) {
'karma-jasmine-matchers',
'karma-chrome-launcher',
'karma-coverage',
'karma-coveralls',
'karma-verbose-reporter'
],
browsers: ['Chrome_dev'],
Expand All @@ -84,6 +85,12 @@ module.exports = function(config) {

if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
configuration.singleRun = true;

// enable coveralls
configuration.reporters.push('coveralls');
// lcov or lcovonly are required for generating lcov.info files
configuration.coverageReporter.type = 'lcov';
}

config.set(configuration);
Expand Down

0 comments on commit 6ce9c3f

Please sign in to comment.