createTraceEventConsumer
inline fun <T : TraceEventConsumer> IviE2eTestCase.createTraceEventConsumer(contextRegex: Regex? = null, localProcessOnly: Boolean = false): T
Creates a TraceEventConsumer that can be used to verify whether trace events are generated during a test. See TraceEventConsumersRule for description and example usages.
Parameters
contextRegex
If the regex matches the trace event context, the consumer will be called. If the regex is null, the consumer gets all events.
localProcessOnly
Whether only trace events from the local process will be consumed. Setting this to true
allows the consumer to be immediately verified after Espresso is idle, and as a result also allows verifying that trace events were not sent.