Class OutcomeDelayingEngineExecutionListener

    • Method Detail

      • executionSkipped

        public void executionSkipped​(TestDescriptor testDescriptor,
                                     java.lang.String reason)
        Description copied from interface: EngineExecutionListener
        Must be called when the execution of a leaf or subtree of the test tree has been skipped.

        The TestDescriptor may represent a test or a container. In the case of a container, engines must not fire any additional events for its descendants.

        A skipped test or subtree of tests must not be reported as started or finished.

        Specified by:
        executionSkipped in interface EngineExecutionListener
        Overrides:
        executionSkipped in class DelegatingEngineExecutionListener
        Parameters:
        testDescriptor - the descriptor of the skipped test or container
        reason - a human-readable message describing why the execution has been skipped
      • executionFinished

        public void executionFinished​(TestDescriptor testDescriptor,
                                      TestExecutionResult executionResult)
        Description copied from interface: EngineExecutionListener
        Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome.

        The TestDescriptor may represent a test or a container.

        This method may only be called if the test or container has not been skipped.

        This method must be called for a container TestIdentifier after all of its children have been skipped or have finished.

        The TestExecutionResult describes the result of the execution for the supplied testDescriptor. The result does not include or aggregate the results of its children. For example, a container with a failing test must be reported as SUCCESSFUL even if one or more of its children are reported as FAILED.

        Specified by:
        executionFinished in interface EngineExecutionListener
        Overrides:
        executionFinished in class DelegatingEngineExecutionListener
        Parameters:
        testDescriptor - the descriptor of the finished test or container
        executionResult - the (unaggregated) result of the execution for the supplied TestDescriptor
        See Also:
        TestExecutionResult
      • reportEngineOutcome

        void reportEngineOutcome()
      • reportEngineFailure

        void reportEngineFailure​(java.lang.Throwable throwable)