Module org.junit.platform.launcher
Interface TestExecutionSummary
Summary of test plan execution.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFailure of a test or container. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the number of containers aborted.longGet the number of containers that failed.longGet the number of containers found.longGet the number of containers skipped.longGet the number of containers started.longGet the number of containers that succeeded.Get an immutable list of the failures of the test plan execution.longGet the number of tests aborted.longGet the number of tests that failed.longGet the number of tests found.longGet the number of tests skipped.longGet the number of tests started.longGet the number of tests that succeeded.longGet the timestamp (in milliseconds) when the test plan finished.longGet the timestamp (in milliseconds) when the test plan started.longGet the total number of failed containers and failed tests.voidprintFailuresTo(PrintWriter writer) Print failed containers and tests, including sources and exception messages, to the suppliedPrintWriter.default voidprintFailuresTo(PrintWriter writer, int maxStackTraceLines) Print failed containers and tests, including sources and exception messages, to the suppliedPrintWriter.voidprintTo(PrintWriter writer) Print this summary to the suppliedPrintWriter.
-
Method Details
-
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. -
getTotalFailureCount
long getTotalFailureCount()Get the total number of failed containers and failed tests. -
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. -
getContainersFailedCount
long getContainersFailedCount()Get the number of containers that failed.- See Also:
-
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. -
getTestsFailedCount
long getTestsFailedCount()Get the number of tests that failed. -
printTo
Print this summary to the suppliedPrintWriter.This method does not print failure messages.
- See Also:
-
printFailuresTo
Print failed containers and tests, including sources and exception messages, to the suppliedPrintWriter.- Parameters:
writer- thePrintWriterto which to print; nevernull- See Also:
-
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 suppliedPrintWriter.The maximum number of lines to print for exception stack traces (if any) can be specified via the
maxStackTraceLinesargument.By default, this method delegates to
printFailuresTo(PrintWriter), effectively ignoring themaxStackTraceLinesargument. Concrete implementations of this interface should therefore override this default method in order to honor themaxStackTraceLinesargument.- Parameters:
writer- thePrintWriterto which to print; nevernullmaxStackTraceLines- the maximum number of lines to print for exception stack traces; must be a positive value- Since:
- 1.6
- See Also:
-
getFailures
List<TestExecutionSummary.Failure> getFailures()Get an immutable list of the failures of the test plan execution.
-