我需要一个快速的方法做了一些测试,不想看的Dalvik调试监视器。 我只是想创建一个快速public static void main()
并打印一些结果与调试试验。 我以为我可以使用单元测试框架来获得在控制台标准输出一些成果,但System.out.println()
还是到日志(以及Log.d()
那么,有没有办法运行单元测试时打印的标准输出?
ant debug install test
test:
[echo] Running tests ...
[exec]
[exec] com.MainTest:.
[exec] Test results for InstrumentationTestRunner=.