Skip to content

Commit

Permalink
added karma-coveralls report when running on travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Padilla committed Sep 5, 2017
1 parent 95bae98 commit 5929599
Show file tree
Hide file tree
Showing 4 changed files with 6,472 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules
/reports
/coverage
/dist
13 changes: 10 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ module.exports = function (config) {
webpack: testWebpackConfig,

coverageReporter: {
type: 'in-memory'
reporters: [
{ type: 'in-memory' }
]
},

remapCoverageReporter: {
'text-summary': null,
json: './reports/coverage/coverage.json',
html: './reports/coverage/html'
json: './coverage/coverage.json',
html: './coverage/html'
},

/*
Expand Down Expand Up @@ -85,5 +87,10 @@ module.exports = function (config) {
singleRun: true
};

if (process.env.TRAVIS) {
configuration.coverageReporter.reporters.push({ type: 'lcov', dir: 'coverage' });
configuration.reporters.push('coveralls');
}

config.set(configuration);
};
Loading

0 comments on commit 5929599

Please sign in to comment.