Next time, please show us what steps you took to make yourself work.
You can just look in logcat after running the tests. Some of the helper classes are already registered for logcat. For example, see android.support.test.internal.runner.lifecycle.ActivityLifecycleMonitorImpl . It registers activity life cycle states:
D/LifecycleMonitor: Lifecycle status change: com.example.android.MyActivity@f3c7955 in: STOPPED
Any log statements inside your test classes will also be displayed. Finally, any log statements inside your test classes will be displayed.
@RunWith(AndroidJUnit4.class) public class SomeTest { @Before public void setUp() throws Exception { Log.d(TAG, "setup"); } ... }
I can see the logs both in Android Studio and on the command line.
I conclude by saying that I can also make the log work if Timber is used instead.
tir38 source share