@Test public void should_not_set_metrics_to_ncloc_for_missing_files_sq_62() throws Exception { String componentKey = componentKey("Monkey.php"); importer.importReport(getReportsWithAbsolutePath("phpunit.coverage-empty.xml"), context); assertThat(context.measure(componentKey, CoreMetrics.LINES_TO_COVER)).isNull(); assertThat(context.measure(componentKey, CoreMetrics.UNCOVERED_LINES)).isNull(); }
@Override protected void importReport(File coverageReportFile, SensorContext context) { LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath()); parseFile(coverageReportFile, context); }
CoverageResultImporter extends SingleFileReportImporter { @Override protected void importReport(File coverageReportFile, SensorContext context) { LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath()); parseFile(coverageReportFile, context); } }
CoverageResultImporter extends SingleFileReportImporter { @Override protected void importReport(File coverageReportFile, SensorContext context) { LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath()); parseFile(coverageReportFile, context); } CoverageResultImporter(String reportPathKey, String msg); }
CoverageResultImporter extends SingleFileReportImporter { @Override protected void importReport(File coverageReportFile, SensorContext context) { LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath()); parseFile(coverageReportFile, context); } CoverageResultImporter(String reportPathKey, String msg); static ReportImporter multiCoverageImporter(); }
CoverageResultImporter extends SingleFileReportImporter { @Override protected void importReport(File coverageReportFile, SensorContext context) { LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath()); parseFile(coverageReportFile, context); } CoverageResultImporter(String reportPathKey, String msg); static ReportImporter multiCoverageImporter();  }