Uses of Class
org.junit.platform.engine.TestExecutionResult
Package
Description
Test descriptors used within the JUnit Jupiter test engine.
Configuration options for JUnit's console launcher.
Public API for test engines.
Support classes and base implementation for any
TestEngine
that wishes to organize test suites
hierarchically based on the
Node
abstraction.Java Flight Recorder support package.
Public API for configuring and launching test plans.
Common
TestExecutionListener
implementations and related support classes for
the Launcher
.Support for generating XML reports using a format which is compatible with
the de facto standard for JUnit 4 based test reports that was made popular
by the Ant build system.
Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform.-
Uses of TestExecutionResult in org.junit.jupiter.engine.descriptor
Modifier and TypeMethodDescriptionvoid
TestFactoryTestDescriptor.nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result)
OverrideTestMethodTestDescriptor.nodeFinished(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.TestExecutionResult)
as a no-op, since theTestWatcher
API is not supported for@TestFactory
containers.void
TestMethodTestDescriptor.nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result)
InvoketestSuccessful()
,testAborted()
, ortestFailed()
on each registeredTestWatcher
according to the status of the suppliedTestExecutionResult
, in reverse registration order. -
Uses of TestExecutionResult in org.junit.platform.console.options
-
Uses of TestExecutionResult in org.junit.platform.engine
Modifier and TypeMethodDescriptionstatic TestExecutionResult
Create aTestExecutionResult
for an aborted execution of a test or container with the suppliedthrowable
.static TestExecutionResult
Create aTestExecutionResult
for a failed execution of a test or container with the suppliedthrowable
.static TestExecutionResult
TestExecutionResult.successful()
Create aTestExecutionResult
for a successful execution of a test or container.Modifier and TypeMethodDescriptiondefault void
EngineExecutionListener.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. -
Uses of TestExecutionResult in org.junit.platform.engine.support.hierarchical
Modifier and TypeMethodDescriptionSingleTestExecutor.executeSafely(SingleTestExecutor.Executable executable)
Deprecated.Execute the suppliedSingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome.ThrowableCollector.toTestExecutionResult()
Convert the collectedThrowables
into aTestExecutionResult
.Modifier and TypeMethodDescriptiondefault void
Node.nodeFinished(C context, TestDescriptor testDescriptor, TestExecutionResult result)
Callback invoked when the execution of this node has finished. -
Uses of TestExecutionResult in org.junit.platform.jfr
Modifier and TypeMethodDescriptionvoid
FlightRecordingExecutionListener.executionFinished(TestIdentifier test, TestExecutionResult result)
-
Uses of TestExecutionResult in org.junit.platform.launcher
Modifier and TypeMethodDescriptiondefault void
TestExecutionListener.executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
Called when the execution of a leaf or subtree of theTestPlan
has finished, regardless of the outcome. -
Uses of TestExecutionResult in org.junit.platform.launcher.listeners
Modifier and TypeMethodDescriptionvoid
LoggingListener.executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
void
SummaryGeneratingListener.executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
void
UniqueIdTrackingListener.executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult)
-
Uses of TestExecutionResult in org.junit.platform.reporting.legacy.xml
Modifier and TypeMethodDescriptionvoid
LegacyXmlReportGeneratingListener.executionFinished(TestIdentifier testIdentifier, TestExecutionResult result)
-
Uses of TestExecutionResult in org.junit.platform.testkit.engine
Modifier and TypeMethodDescriptionTerminationInfo.getExecutionResult()
Get theTestExecutionResult
for the completed execution.Modifier and TypeMethodDescriptionstatic Condition<TestExecutionResult>
TestExecutionResultConditions.status(TestExecutionResult.Status expectedStatus)
Create a newCondition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
.static Condition<TestExecutionResult>
Create a newCondition
that matches if and only if aTestExecutionResult
's throwable matches all supplied conditions.Modifier and TypeMethodDescriptionstatic TerminationInfo
TerminationInfo.executed(TestExecutionResult testExecutionResult)
Create an executedTerminationInfo
instance for the suppliedTestExecutionResult
.static Event
Event.executionFinished(TestDescriptor testDescriptor, TestExecutionResult result)
void
ExecutionRecorder.executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)
Record anEvent
for a container or test that completed with the providedTestExecutionResult
.static Execution
Execution.finished(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TestExecutionResult executionResult)
Create a new instance of anExecution
that finished with the providedTestExecutionResult
.Modifier and TypeMethodDescriptionEventConditions.finished(Condition<TestExecutionResult> resultCondition)
Create a newCondition
that matches if and only if anEvent
's type isEventType.FINISHED
and its payload is an instance ofTestExecutionResult
that matches the suppliedCondition
.EventConditions.result(Condition<TestExecutionResult> condition)
Create a newCondition
that matches if and only if anEvent
's payload is an instance ofTestExecutionResult
that matches the suppliedCondition
.