Enum Class TestOutputFormat
- All Implemented Interfaces:
Serializable, Comparable<TestOutputFormat>, Constable
Output format for test results.
Follows the EK9 pattern of numbered suffixes (-t0, -t1, -t2, -t3)
similar to optimization (-O0, -O1, etc.) and error levels (-E0, -E1, etc.).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TestOutputFormatParse a command line flag to determine the output format.Get the primary flag for this format.booleanCheck if this format matches the given command line flag.static TestOutputFormatReturns the enum constant of this class with the specified name.static TestOutputFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TERSE
Terse output - minimal summary only. Format: "N tests: X passed, Y failed" Use case: Scripting, CI pass/fail checks. -
HUMAN
Human-readable output with visual formatting. Includes test names, durations, failure details with icons. Use case: Interactive terminal usage (default). -
JSON
JSON structured output for programmatic consumption. Full metadata including locations, expressions, timing. Use case: AI/LLM integration, custom tooling. -
JUNIT_XML
JUnit XML format for CI/CD integration. Compatible with Jenkins, GitHub Actions, GitLab CI. Use case: Enterprise CI/CD pipelines.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
matches
Check if this format matches the given command line flag. -
fromFlag
Parse a command line flag to determine the output format.- Parameters:
flag- The flag to parse (e.g., "-t", "-t0", "-t2")- Returns:
- The matching format, or HUMAN as default
-
getPrimaryFlag
Get the primary flag for this format.
-