Package com.github.sbt.junit.jupiter.api
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 TypeMethodDescriptiondefault voidexecutionFailed(String className, Throwable throwable) Called when the execution of a test task failed.default voidexecutionFiltered(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
Called when the execution of a test task failed.- Parameters:
className- The class-name as reported byTaskDef.fullyQualifiedName().throwable- The throwable which caused test execution to fail.
-
executionFiltered
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.
-