use of com.intellij.execution.configurations.RunnerSettings in project intellij-plugins by JetBrains.
the class KarmaCoverageProgramRunner method processLcovInfoFile.
private static void processLcovInfoFile(@NotNull File lcovInfoFile, @NotNull String toCoverageFilePath, @NotNull ExecutionEnvironment env, @NotNull KarmaServer karmaServer, @NotNull KarmaRunConfiguration runConfiguration) {
try {
FileUtil.copy(lcovInfoFile, new File(toCoverageFilePath));
} catch (IOException e) {
LOG.error("Cannot copy " + lcovInfoFile.getAbsolutePath() + " to " + toCoverageFilePath, e);
return;
}
RunnerSettings runnerSettings = env.getRunnerSettings();
if (runnerSettings != null) {
KarmaCoverageRunner coverageRunner = KarmaCoverageRunner.getInstance();
coverageRunner.setKarmaServer(karmaServer);
CoverageDataManager.getInstance(env.getProject()).processGatheredCoverage(runConfiguration, runnerSettings);
}
}
Aggregations