Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio(0.2.0) Unit test No output on logcat

When I write a unit test on Android Studio(0.2.0) with some log output, but alfter I ran it , there are no logs except

09-13 11:16:39.747  20963-20978/com.wanshangle I/TestRunner: started: testAndroidTestCaseSetupProperly(com.wanshangle.api.test.AsyncHttpRequestTest)
09-13 11:16:39.747  20963-20978/com.wanshangle I/TestRunner: finished: testAndroidTestCaseSetupProperly(com.wanshangle.api.test.AsyncHttpRequestTest)
09-13 11:16:39.747  20963-20978/com.wanshangle I/TestRunner: passed: testAndroidTestCaseSetupProperly(com.wanshangle.api.test.AsyncHttpRequestTest)
like image 927
Desert Zhang Avatar asked Oct 25 '25 02:10

Desert Zhang


1 Answers

By default when running unit tests in android studio it shows you a runner log window, this only relates to the actual running though. If you wan't to see the log you get from Log.x you have to open the LogCat window. You'll find this under "View->Tool Windows->Android":

Android Studio LogCat view

like image 164
Almund Avatar answered Oct 27 '25 15:10

Almund