Class ConsoleReporter

java.lang.Object
io.github.mov2day.unifiedtest.reporting.ConsoleReporter

public class ConsoleReporter extends Object
ConsoleReporter provides formatted console output for test results and summaries.
  • Constructor Details

    • ConsoleReporter

      public ConsoleReporter(String themeName)
      Constructs a ConsoleReporter with the specified theme.
      Parameters:
      themeName - the name of the theme
  • Method Details

    • testRunning

      public void testRunning(String display)
      Prints a running test message.
      Parameters:
      display - the test display name
    • testResult

      public void testResult(String display, String status)
      Prints a test result message.
      Parameters:
      display - the test display name
      status - the test status
    • summary

      public void summary(int total, int passed, int failed, int skipped)
      Prints a summary of test results.
      Parameters:
      total - total tests
      passed - passed tests
      failed - failed tests
      skipped - skipped tests
    • formatSummary

      public String formatSummary(int total, int passed, int failed, int skipped)
      Formats the summary string.
      Parameters:
      total - total tests
      passed - passed tests
      failed - failed tests
      skipped - skipped tests
      Returns:
      formatted summary string