@Test public void should_work_with_relative_paths() throws Exception { String componentKey = componentKey(MONKEY_FILE_NAME); String reportName = "phpunit.coverage.xml"; File reportFile = Paths.get(SRC_TEST_RESOURCES, PhpTestUtils.PHPUNIT_REPORT_DIR, reportName).toFile(); importer.importReport(reportFile, context); assertReport(componentKey); }
@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();  }