@Test public void should_throw_an_exception_when_report_not_found() { thrown.expect(IllegalStateException.class); thrown.expectMessage("Can't read phpUnit report:"); importer.importReport(new File("notfound.txt"), setUpForMockedSensorContext()); }
@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();  }