LogRule

class LogRule : TestRule

A JUnit TestRule that intercepts and prints log messages during tests.

This rule utilizes MockK to mock the static methods of the Log class. It intercepts calls to Log.d and Log.e and prints the log messages to the console.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(base: Statement?, description: Description?): Statement

The rules to intercept and print log messages during tests.