# TestListener

interface TestListener(source)

Interface for listening to test execution. The intent is to be framework agnostic. Currently this interface can support feedback from JUnit and TestNG tests.

## Functions

afterSuite
Link copied to clipboard
abstract fun afterSuite(suite: TestDescriptor, result: TestResult)
Called after a test suite is finished.
afterTest
Link copied to clipboard
abstract fun afterTest(testDescriptor: TestDescriptor, result: TestResult)
Called after an atomic test is finished.
beforeSuite
Link copied to clipboard
abstract fun beforeSuite(suite: TestDescriptor)
Called before a test suite is started.
beforeTest
Link copied to clipboard
abstract fun beforeTest(testDescriptor: TestDescriptor)
Called before an atomic test is started.