Interface TestExecutionSummary

    • Method Detail

      • getTimeStarted

        long getTimeStarted()
        Get the timestamp (in milliseconds) when the test plan started.
      • getTimeFinished

        long getTimeFinished()
        Get the timestamp (in milliseconds) when the test plan finished.
      • getContainersFoundCount

        long getContainersFoundCount()
        Get the number of containers found.
      • getContainersStartedCount

        long getContainersStartedCount()
        Get the number of containers started.
      • getContainersSkippedCount

        long getContainersSkippedCount()
        Get the number of containers skipped.
      • getContainersAbortedCount

        long getContainersAbortedCount()
        Get the number of containers aborted.
      • getContainersSucceededCount

        long getContainersSucceededCount()
        Get the number of containers that succeeded.
      • getTestsFoundCount

        long getTestsFoundCount()
        Get the number of tests found.
      • getTestsStartedCount

        long getTestsStartedCount()
        Get the number of tests started.
      • getTestsSkippedCount

        long getTestsSkippedCount()
        Get the number of tests skipped.
      • getTestsAbortedCount

        long getTestsAbortedCount()
        Get the number of tests aborted.
      • getTestsSucceededCount

        long getTestsSucceededCount()
        Get the number of tests that succeeded.
      • printFailuresTo

        @API(status=MAINTAINED,
             since="1.6")
        default void printFailuresTo​(PrintWriter writer,
                                     int maxStackTraceLines)
        Print failed containers and tests, including sources and exception messages, to the supplied PrintWriter.

        The maximum number of lines to print for exception stack traces (if any) can be specified via the maxStackTraceLines argument.

        By default, this method delegates to printFailuresTo(PrintWriter), effectively ignoring the maxStackTraceLines argument. Concrete implementations of this interface should therefore override this default method in order to honor the maxStackTraceLines argument.

        Parameters:
        writer - the PrintWriter to which to print; never null
        maxStackTraceLines - the maximum number of lines to print for exception stack traces; must be a positive value
        Since:
        1.6
        See Also:
        printTo(PrintWriter), printFailuresTo(PrintWriter)