Interface Reporter<R>

Type Parameters:
R - the report generic type

public interface Reporter<R>
The reporter defines a set of callback for the life cycle events.
Author:
Julien Viet
  • Field Details

  • Method Details

    • reporter

      static Reporter<?> reporter(Vertx vertx, ReportOptions options)
    • reportBeginTestSuite

      R reportBeginTestSuite(String name)
      Signals the test suite began.
      Parameters:
      name - the test suite name
      Returns:
      the report object
    • reportBeginTestCase

      void reportBeginTestCase(R report, String name)
      Signals a test case began.
      Parameters:
      report - the report
      name - the test case name
    • reportEndTestCase

      void reportEndTestCase(R report, String name, TestResult result)
      Signals a test case ended.
      Parameters:
      report - the report
      name - the test case name
      result - the test case result
    • reportError

      void reportError(R report, Throwable err)
      Report a global test suite error, it can be called mulitple times between the reportBeginTestSuite(String) and the reportEndTestSuite(R).
      Parameters:
      report - the report
      err - the test suite error
    • reportEndTestSuite

      void reportEndTestSuite(R report)
      Signals a test suite ended.
      Parameters:
      report - the report