Package org.apache.pulsar.tests
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.IExecutionListener
onExecutionStartMethods inherited from interface org.testng.ISuiteListener
onStart
-
Constructor Details
-
JacocoDumpListener
public JacocoDumpListener()
-
-
Method Details
-
onFinish
public void onFinish(org.testng.ISuite suite) - Specified by:
onFinishin interfaceorg.testng.ISuiteListener
-
onExecutionFinish
public void onExecutionFinish()- Specified by:
onExecutionFinishin interfaceorg.testng.IExecutionListener
-