Class JacocoDumpListener

java.lang.Object
org.apache.pulsar.tests.JacocoDumpListener
All Implemented Interfaces:
org.testng.IExecutionListener, org.testng.ISuiteListener, org.testng.ITestNGListener

public class JacocoDumpListener extends Object implements org.testng.ISuiteListener, org.testng.IExecutionListener
A TestNG listener that dumps Jacoco coverage data to file using the Jacoco JMX interface. This ensures that coverage data is dumped even if the shutdown sequence of the Test JVM gets stuck. Coverage data will be dumped every 2 minutes by default and once all test suites have been run. Each test class runs in its own suite when run with maven-surefire-plugin.
  • Constructor Details

    • JacocoDumpListener

      public JacocoDumpListener()
  • Method Details

    • onFinish

      public void onFinish(org.testng.ISuite suite)
      Specified by:
      onFinish in interface org.testng.ISuiteListener
    • onExecutionFinish

      public void onExecutionFinish()
      Specified by:
      onExecutionFinish in interface org.testng.IExecutionListener