Skip to content

Commit

Permalink
now browser caches source by its content hash, no need to use a diffe…
Browse files Browse the repository at this point in the history
…rent port for running with coverage (WEB-14220)
  • Loading branch information
segrey committed Dec 17, 2014
1 parent 6862222 commit c6c2fd3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/intellijCoverageReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ function configureCoverage(config) {
};
}
reporters.push(IntellijCoverageReporter.reporterName);

// 'Run with coverage' should serve *.js files preprocessed by coverage preprocessor.
// Unfortunately if 'Run' was executed previously, browser cache is reused for 'Run with coverage' also.
// Thus, served *.js files aren't preprocessed by coverage.
// Workaround: start 'Run with coverage' on different port.
if (typeof config.port == 'undefined') {
config.port = 9877;
}
else if (typeof config.port === 'number') {
config.port++;
}
}
else {
clearCoveragePreprocessors(config.preprocessors);
Expand Down

0 comments on commit c6c2fd3

Please sign in to comment.