简体   繁体   中英

Robolectric print Log or Console messages

I wrote a small test using Robolectric. There is an issue - no messages are written to the test console. In the tested code there is a lot of code like

Log.d("bla","bla")

or

System.out.println("bla")

but anyway, there is no output.

我认为您已应用日志的代码部分未执行。所以这就是为什么日志不出现的原因。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM