Class TerseTestFormatter
java.lang.Object
org.ek9lang.cli.TerseTestFormatter
- All Implemented Interfaces:
TestResultFormatter
Terse test output formatter (-t0).
Minimal output suitable for scripting and CI pass/fail checks.
Output format:
N tests: X passed, Y failed (A assert, B blackbox, C parameterized)
With verbose flag (-v), also lists each test result with type:
PASS [Assert] module::TestName FAIL [BlackBox] module::OtherTest PASS [Param:hello] module::ParamTest 3 tests: 2 passed, 1 failed (1 assert, 1 blackbox, 1 parameterized)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreportDiscovery(List<DiscoveredTest> tests, PrintStream out) Report the discovery of tests before execution begins.voidreportExecutionStart(int testCount, PrintStream out) Report that test execution is starting.voidreportResults(List<TestResult> results, PrintStream out) Report all test results after execution completes.
-
Constructor Details
-
TerseTestFormatter
TerseTestFormatter(boolean verbose)
-
-
Method Details
-
reportDiscovery
Description copied from interface:TestResultFormatterReport the discovery of tests before execution begins.The discovery report should include:
- Test type breakdown (assert-based vs blackbox vs parameterized)
- Total test case count (including parameterized cases)
- Group information if applicable
- Specified by:
reportDiscoveryin interfaceTestResultFormatter- Parameters:
tests- The discovered tests with metadataout- The output stream
-
reportExecutionStart
Description copied from interface:TestResultFormatterReport that test execution is starting. Some formatters may output a progress message here.- Specified by:
reportExecutionStartin interfaceTestResultFormatter- Parameters:
testCount- The number of tests to executeout- The output stream
-
reportResults
Description copied from interface:TestResultFormatterReport all test results after execution completes.- Specified by:
reportResultsin interfaceTestResultFormatter- Parameters:
results- The test resultsout- The output stream
-