Class TestEngineConsoleTestExecutionListener

  • All Implemented Interfaces:
    org.junit.platform.launcher.TestExecutionListener

    public class TestEngineConsoleTestExecutionListener
    extends org.junit.platform.launcher.listeners.SummaryGeneratingListener
    Class to collect metrics and output test execution status
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Method to indicate execution of a TestPlan as finished
      void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Method to indicate execution of a TestIdentifier as started
      void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)
      Method to indicate execution of a TestPlan as finished
      void testPlanExecutionStarted​(org.junit.platform.launcher.TestPlan testPlan)
      Method to indicate execution of a TestPlan as started
      • Methods inherited from class org.junit.platform.launcher.listeners.SummaryGeneratingListener

        dynamicTestRegistered, executionSkipped, getSummary
      • Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

        reportingEntryPublished
    • Constructor Detail

      • TestEngineConsoleTestExecutionListener

        public TestEngineConsoleTestExecutionListener()
        Constructor
    • Method Detail

      • testPlanExecutionStarted

        public void testPlanExecutionStarted​(org.junit.platform.launcher.TestPlan testPlan)
        Method to indicate execution of a TestPlan as started
        Specified by:
        testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
        Overrides:
        testPlanExecutionStarted in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
        Parameters:
        testPlan - the TestPlan
      • executionStarted

        public void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)
        Method to indicate execution of a TestIdentifier as started
        Specified by:
        executionStarted in interface org.junit.platform.launcher.TestExecutionListener
        Overrides:
        executionStarted in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
        Parameters:
        testIdentifier - the TestIdentifier
      • executionFinished

        public void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                      org.junit.platform.engine.TestExecutionResult testExecutionResult)
        Method to indicate execution of a TestPlan as finished
        Specified by:
        executionFinished in interface org.junit.platform.launcher.TestExecutionListener
        Overrides:
        executionFinished in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
        Parameters:
        testIdentifier - the TestIdentifier
        testExecutionResult - the TestExecutionResult
      • testPlanExecutionFinished

        public void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)
        Method to indicate execution of a TestPlan as finished
        Specified by:
        testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
        Overrides:
        testPlanExecutionFinished in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
        Parameters:
        testPlan - the TestPlan