TraceEventErrorsListener

class TraceEventErrorsListener : RunListener

A JUnit RunListener that catches TraceEvent errors during test execution. And reports these errors to Instrumentation. A test will fail at the end when one or more error events were caught during that test. The error events will be shown in JUnit reports. Any error events that were caught will be cleared before the next test is started.

Error events may be whitelisted from within a test when this error is expected. This can be done by using one of the expect methods.

Constructors

Link copied to clipboard
fun TraceEventErrorsListener()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun testFailure(failure: Failure?)
Link copied to clipboard
open override fun testFinished(description: Description)
Link copied to clipboard
open override fun testRunFinished(result: Result?)
Link copied to clipboard
open override fun testRunStarted(description: Description?)
Link copied to clipboard
open override fun testStarted(description: Description)

Inherited functions

Link copied to clipboard
open fun testAssumptionFailure(p0: Failure)
Link copied to clipboard
open fun testIgnored(p0: Description)
Link copied to clipboard
open fun testSuiteFinished(p0: Description)
Link copied to clipboard
open fun testSuiteStarted(p0: Description)