New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 741721 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Not on Chrome anymore
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Show android logs for robolectric tests that fail

Project Member Reported by dgn@chromium.org, Jul 12 2017

Issue description

By default, all logs sent to android.util.Log are swallowed by Robolectric. It can be fixed by settings ShadowLog.stream to something like System.out.

Enabling it all the time would however spam the output of the other tests and making it harder to find errors.

A rule would be an easy way to enable logging for specific tests, but if we could cache logs during tests and only display them on failures, it would be nice to have it applied on all of them. That would likely require playing with the TestRunner in that case.
 

Sign in to add a comment