Search in sources :

Example 1 with RunnerSettings

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);
    }
}
Also used : RunnerSettings(com.intellij.execution.configurations.RunnerSettings) IOException(java.io.IOException) File(java.io.File)

Aggregations

RunnerSettings (com.intellij.execution.configurations.RunnerSettings)1 File (java.io.File)1 IOException (java.io.IOException)1