Interface JupiterTestListener

All Superinterfaces:
org.junit.platform.launcher.TestExecutionListener
All Known Implementing Classes:
Dispatcher, FlatPrintingTestListener, TreePrintingTestListener

public interface JupiterTestListener extends org.junit.platform.launcher.TestExecutionListener
Extended test execution listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    executionFailed(String className, Throwable throwable)
    Called when the execution of a test task failed.
    default void
    executionFiltered(org.junit.platform.engine.TestDescriptor descriptor, String reason)
    Called when a test has been filtered.

    Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

    dynamicTestRegistered, executionFinished, executionSkipped, executionStarted, fileEntryPublished, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
  • Method Details

    • executionFailed

      default void executionFailed(String className, Throwable throwable)
      Called when the execution of a test task failed.
      Parameters:
      className - The class-name as reported by TaskDef.fullyQualifiedName().
      throwable - The throwable which caused test execution to fail.
    • executionFiltered

      default void executionFiltered(org.junit.platform.engine.TestDescriptor descriptor, String reason)
      Called when a test has been filtered.
      Parameters:
      descriptor - The descriptor of the filtered test.
      reason - A string which describes why this test was filtered.