Contrary to JUnit 4, test engines must report events not only for test descriptors that represent executable leaves but also for all intermediate containers.
TestEngine
, ExecutionRequest
Modifier and Type | Field and Description |
---|---|
public static final EngineExecutionListener | NOOP
No-op implementation of |
Modifier and Type | Method and Description |
---|---|
public default void | dynamicTestRegistered(TestDescriptor
the descriptor of the newly registered test
or container testDescriptor)Must be called when a new, dynamic |
public default void | executionFinished(TestDescriptor
the descriptor of the finished test or container testDescriptor, TestExecutionResult the (unaggregated) result of the execution for
the supplied testExecutionResult)TestDescriptor Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome. |
public default void | executionSkipped(TestDescriptor
the descriptor of the skipped test or container testDescriptor, String a human-readable message describing why the execution
has been skipped reason)Must be called when the execution of a leaf or subtree of the test tree has been skipped. |
public default void | executionStarted(TestDescriptor
the descriptor of the started test or container testDescriptor)Must be called when the execution of a leaf or subtree of the test tree is about to be started. |
public default void | reportingEntryPublished(TestDescriptor
the descriptor of the test or container to which
the reporting entry belongs testDescriptor, ReportEntry a entry)ReportEntry instance to be publishedCan be called for any
|
NOOP | back to summary |
---|---|
public static final EngineExecutionListener NOOP No-op implementation of |
dynamicTestRegistered | back to summary |
---|---|
public default void dynamicTestRegistered(TestDescriptor testDescriptor) Must be called when a new, dynamic A dynamic test is a test that is not known a-priori and therefore was not present in the test tree when discovering tests.
|
executionFinished | back to summary |
---|---|
public default void executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome. The This method may only be called if the test or container has not been skipped. This method must be called for a container The
|
executionSkipped | back to summary |
---|---|
public default void executionSkipped(TestDescriptor testDescriptor, String reason) Must be called when the execution of a leaf or subtree of the test tree has been skipped. The A skipped test or subtree of tests must not be reported as started or finished.
|
executionStarted | back to summary |
---|---|
public default void executionStarted(TestDescriptor testDescriptor) Must be called when the execution of a leaf or subtree of the test tree is about to be started. The This method may only be called if the test or container has not been skipped. This method must be called for a container
|
reportingEntryPublished | back to summary |
---|---|
public default void reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry) Can be called for any
The current lifecycle state of the supplied
|