Android Test Case - how to view output?

前端 未结 6 967
野趣味
野趣味 2021-01-07 16:05

I\'m using AndroidTestCase for unit testing. I have a unit test which is failing, but I haven\'t figured out how to display output from it. For example, I don\'

6条回答
  •  醉话见心
    2021-01-07 16:37

    In my case ,

    System.out.println("Test") is working for JUnits tests,

    Log.d("tag" , "Test") is working for AndroidJUnit tests(Instrumented)

提交回复
热议问题