Skip to content
Prev Previous commit
Next Next commit
check for local assets in CodeCoverageReporterTest
  • Loading branch information
PhilippSalvisberg committed Dec 27, 2020
commit 4d9805323f27b9388f6aed576c9bdbbe161d8ecc
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public void produceReportAndCloseConnection() {
final String content = new String(FileTools.readFile(outputFile), StandardCharsets.UTF_8);
Assert.assertTrue(
content.contains("<h3>SCOTT.F</h3><h4><span class=\"green\">100 %</span> lines covered</h4>"));
// local assets without internet access
Assert.assertTrue(
content.contains("script src='" + reporter.getHtmlReportAssetPath().toExternalForm()));
}

@Test
Expand Down