Skip to content

Generating both open-test-report.xml and open-test-report.html #5139

@arukiidou

Description

@arukiidou

Generating both open-test-report.xml and open-test-report.html
(when junit.platform.reporting.open.xml.html.enabled=true)

Example

https://github.com/ota4j-team/open-test-reporting/blob/main/tooling-core/src/test/java/org/opentest4j/reporting/tooling/core/htmlreport/DefaultHtmlReportWriterBrowserTests.java#L50-L61

	@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);
	}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions