# 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.

Note that the beforeSuite method will be called at 3 different times:

1. Before the test task executes any tests
2. Each time a test worker is started before it executes any tests
3. Before each "test suite" as defined by the testing framework is executed (for JVM, this typically means prior to every test class)

## 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.