How Do I Print The Stdout For Unit Test In Android?
I need a quick way to do a few tests and don't want to look at the Dalvik Debug Monitor. I just want to create a quick public static void main() and print some results to experimen
Solution 1:
I didn't find the option to enable stdout redirection for a unit test, but here is a workaround. After running a unit test (or in a separate shell window) type:
adb logcat|grep System.outOn Windows, it should probably be adb logcat | FINDSTR System.out
It will only display System.out statements including the output of the unit test.
Post a Comment for "How Do I Print The Stdout For Unit Test In Android?"