Class ConsoleReporter
java.lang.Object
io.github.mov2day.unifiedtest.reporting.ConsoleReporter
ConsoleReporter provides formatted console output for test results and summaries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheme options for console output formatting. -
Constructor Summary
ConstructorsConstructorDescriptionConsoleReporter(String themeName) Constructs a ConsoleReporter with the specified theme. -
Method Summary
Modifier and TypeMethodDescriptionformatSummary(int total, int passed, int failed, int skipped) Formats the summary string.voidsummary(int total, int passed, int failed, int skipped) Prints a summary of test results.voidtestResult(String display, String status) Prints a test result message.voidtestRunning(String display) Prints a running test message.
-
Constructor Details
-
ConsoleReporter
Constructs a ConsoleReporter with the specified theme.- Parameters:
themeName- the name of the theme
-
-
Method Details
-
testRunning
Prints a running test message.- Parameters:
display- the test display name
-
testResult
Prints a test result message.- Parameters:
display- the test display namestatus- the test status
-
summary
public void summary(int total, int passed, int failed, int skipped) Prints a summary of test results.- Parameters:
total- total testspassed- passed testsfailed- failed testsskipped- skipped tests
-
formatSummary
Formats the summary string.- Parameters:
total- total testspassed- passed testsfailed- failed testsskipped- skipped tests- Returns:
- formatted summary string
-