Learn how to use the BELLATRIX logging library.


public class LoggingTests extends AndroidTest {
    public void buttonClicked_When_CallClickMethod() {
        Log.info("$$$ Before clicking the button $$$");
        var button = app().create().byIdContaining(Button.class, "button");



Log.info("$$$ Before clicking the button $$$");

Sometimes is useful to add information to the generated test log. To do it you can use the BELLATRIX built-in logger through the Log class’s static methods.

Generated Log, as you can see the above custom message is added to the log.

Start Test
Class = LoggingTests Name = ButtonClicked_When_CallClickMethod
$$$ before clicking the button $$$
clicking Button (id = button)