-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Closed as not planned
Copy link
Description
Generating both open-test-report.xml and open-test-report.html
(when junit.platform.reporting.open.xml.html.enabled=true)
Example
@TempDir
static Path tempDir;
static Path sampleHtmlReport;
@BeforeAll
static void createHtmlReport() throws Exception {
var sampleXmlReport = Path.of(requireNonNull(System.getProperty("sampleXmlReport")));
assertThat(sampleXmlReport).exists().hasExtension("xml");
sampleHtmlReport = tempDir.resolve("open-test-report.html");
new DefaultHtmlReportWriter().writeHtmlReport(List.of(sampleXmlReport), sampleHtmlReport);
}