I\'m using Robolectric to test Android. I\'m running my tests via maven, e.g.
mvn -Dtest=LogTest test
If I have code that writes to the logs,
Add the following to your test setup before your test runs:
ShadowLog.stream = System.out; Robolectric.bindShadowClass(ShadowLog.class);
https://groups.google.com/forum/?fromgroups=#!msg/robolectric/PK-9cQQQROw/svuQzM5h_vsJ