@Override protected String getReportPath(Project project) { return configuration.getItReportPath(); }
@Override protected String getReportPath(Project project) { return configuration.getItReportPath(); }
public boolean shouldExecuteOnProject(Project project) { File report = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); boolean foundReport = report.exists() && report.isFile(); boolean shouldExecute = configuration.shouldExecuteOnProject(foundReport); if(!foundReport && shouldExecute) { JaCoCoUtils.LOG.info("JaCoCoItSensor: JaCoCo IT report not found."); } return shouldExecute; }
@Override public boolean shouldExecuteOnProject(Project project) { File report = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); boolean foundReport = report.exists() && report.isFile(); boolean shouldExecute = configuration.shouldExecuteOnProject(foundReport); if(!foundReport && shouldExecute) { JaCoCoExtensions.LOG.info("JaCoCoItSensor: JaCoCo IT report not found."); } return shouldExecute; }
@Override public boolean shouldExecuteOnProject(Project project) { File reportUTs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getReportPath()); File reportITs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); boolean foundOneReport = reportUTs.exists() || reportITs.exists(); boolean shouldExecute = configuration.shouldExecuteOnProject(foundOneReport); if (!foundOneReport && shouldExecute) { JaCoCoExtensions.LOG.info("JaCoCoOverallSensor: JaCoCo reports not found."); } return shouldExecute; }
public boolean shouldExecuteOnProject(Project project) { File reportUTs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getReportPath()); File reportITs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); boolean foundBothReports = reportUTs.exists() && reportITs.exists(); boolean shouldExecute = configuration.shouldExecuteOnProject(foundBothReports); if (!foundBothReports && shouldExecute) { JaCoCoUtils.LOG.info("JaCoCoOverallSensor: JaCoCo reports not found."); } return shouldExecute; }
public void analyse(Project project, SensorContext context) { File reportUTs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getReportPath()); File reportITs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); if ((!reportUTs.exists()) || (!reportITs.exists())) { return; } File reportOverall = new File(fileSystem.workingDir(), JACOCO_OVERALL); reportOverall.getParentFile().mkdirs(); mergeReports(reportOverall, reportUTs, reportITs); new OverallAnalyzer(reportOverall, perspectives).analyse(project, context); }
@Override public void analyse(Project project, SensorContext context) { File reportUTs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getReportPath()); File reportITs = pathResolver.relativeFile(fileSystem.baseDir(), configuration.getItReportPath()); File reportOverall = new File(fileSystem.workingDir(), JACOCO_OVERALL); reportOverall.getParentFile().mkdirs(); mergeReports(reportOverall, reportUTs, reportITs); new OverallAnalyzer(reportOverall, perspectives).analyse(project, context); }