Skip to content

Commit

Permalink
disable code coverage when testing on SauceLabs
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Oct 5, 2018
1 parent 710b814 commit f20e3b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function configureCodeCoverage (config) {
console.warn('Code-coverage is not enabled');
return;
}
else if (process.env.SAUCE === 'true') {
// Code coverage causes sporadic failures on SauceLabs
// https://github.com/karma-runner/karma-sauce-launcher/issues/95#issuecomment-255020888
console.warn('Code-coverage is disabled for SauceLabs');
return;
}

config.reporters.push('coverage');
config.coverageReporter = {
Expand Down

0 comments on commit f20e3b4

Please sign in to comment.