我最近升级到Android Studio 3.2.1 / com.android.tools.build:gradle:3.2.1
,并注意到当我运行Instrumentation Tests时,有很多新输出阻塞了我想查看的日志。这是一个小预览:
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS_CODE: 1
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: class=com.zach.testapp.ExampleInstrumentedTest
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: current=1
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: numtests=1
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: stream=.
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS: test=useAppContext
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_STATUS_CODE: 0
07:38:28 V/InstrumentationResultParser: INSTRUMENTATION_RESULT: stream=
对于具有单个Instrumentation测试的新项目,将显示超过50行文本作为输出。在我的“主要”项目中,我进行了数百次Instrumentation测试,这使得输出很难读取有意义的信息(例如失败),因为我必须滚动很多。
是否可以禁用此日志记录?