小编dan*_*iel的帖子

在android studio junit test中记录消息

有没有办法在Android Studio中运行JUnit(方法)测试时打印出Logcat(Log.i,Log.d)消息?

我可以看到System.out.print消息但没有logcat打印输出.

在运行配置(Android Studio的GUI窗口)中,有针对Android测试的测试的logcat选项,但不适用于JUnit测试.

这有可能吗?谢谢你的任何提示!

junit android logcat android-studio

13
推荐指数
3
解决办法
1万
查看次数

标签 统计

android ×1

android-studio ×1

junit ×1

logcat ×1