Package org.apache.juneau.terminal.report


package org.apache.juneau.terminal.report
Terminal-view events and the readers that produce them from test-report files.

A TerminalEvent is one event of a terminal-view stream (a step, a suite summary, a test, a note, ...). Each ReportReader reads one report format (Surefire and JUnit XML, Jest JSON, Playwright JSON) into a ReportResult, whose toEvents(step) yields the replace, test and note events a producer appends to a terminal view when a step ends. A reader never throws for bad input: a missing, oversize, malformed or truncated file yields the tests that could be recovered plus a warning.

Use ReportReaders#forKind(java.lang.String) to pick a reader by its report kind.

This module has no dependency on the REST server or on the view toolkit, so a producer (a build tool, a test runner, a release application) can use it on its own; juneau-console-views depends on it to render and serve the events.