Class TCITracingAgent

java.lang.Object
software.xdev.tci.tracing.TCITracingAgent
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

public class TCITracingAgent extends Object implements org.junit.platform.launcher.TestExecutionListener
Traces various TCI metrics including, average duration, amount and total duration of
  • tests
  • containers
  • pre-starting
  • ...

Active by default due to service loading.

  • Field Details

    • config

      protected TracingConfig config
    • startTime

      protected long startTime
    • testsTimed

      protected final TCITracer.Timed testsTimed
    • testStartTime

      protected final Map<org.junit.platform.launcher.TestIdentifier,Long> testStartTime
  • Constructor Details

    • TCITracingAgent

      public TCITracingAgent()
  • Method Details

    • testPlanExecutionStarted

      public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionStarted

      public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Specified by:
      executionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Specified by:
      executionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • testPlanExecutionFinished

      public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener