久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

android 儀器測(cè)試的輸出在哪里?

Where is the output from an android instrumented test?(android 儀器測(cè)試的輸出在哪里?)
本文介紹了android 儀器測(cè)試的輸出在哪里?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

我設(shè)法讓 gradle cC 工作.我的測(cè)試只是打印出來(lái)并記錄一行文本.

I managed to get gradle cC to work. My test just prints out and logs one line of text.

grep -r text * fails.

system.outlogging 輸出在哪里?

謝謝

edit:我找到了 unit 測(cè)試的輸出(它在 .../app/build/test-results/中).但仍然沒有運(yùn)氣.

edit: i found the output for the unit tests (it's in .../app/build/test-results/). but still no luck with the other.

有沒有辦法以某種方式保存檢測(cè)測(cè)試的輸出?

is there a way to save the output from the instrumented tests somehow?

推薦答案

運(yùn)行gradlew connectedCheck會(huì)在build目錄生成測(cè)試結(jié)果,見

Running gradlew connectedCheck will generate test results in the build directory, see

uild
eportsandroidTestsconnected
  and
uildoutputsandroidTest-resultsconnected

這些儀器測(cè)試還將其輸出以及任何 Log.d 語(yǔ)句記錄在 LogCat 中.在您的測(cè)試用例中使用 System.out.print 將產(chǎn)生如下輸出:

These instrumentation tests will also log their output in LogCat, along with any Log.d statements. Using System.out.print in your test cases will result in an output like this:

01-27 18:05:30.445 32664-32677/your.packagename I/System.out:測(cè)試輸出

01-27 18:05:30.445 32664-32677/your.packagename I/System.out﹕ Test output

如果您還需要持久化輸出,您可以編寫一個(gè)運(yùn)行 adb logcat 并從設(shè)備中提取日志的 gradle 任務(wù).

If you need to also persist the output you could probably write a gradle task running adb logcat and pulling the logs from the device.

這篇關(guān)于android 儀器測(cè)試的輸出在哪里?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問(wèn)題)
主站蜘蛛池模板: 又黑又粗又长的欧美一区 | 成人婷婷 | av男人的天堂av | 正在播放一区二区 | 亚洲一区欧美一区 | 国产精品一区二 | 91精品一区二区三区久久久久 | 五月综合色啪 | 国产精久久久久久久妇剪断 | 亚洲欧美在线视频 | 一级做a爰片久久毛片免费看 | 精品免费国产一区二区三区四区介绍 | 日日骚网 | 99精彩视频 | 国产精品久久久久无码av | 久久久久国产精品一区 | jizz在线看片| 日本久久黄色 | 欧美日本一区二区 | 日韩中文字幕免费 | 九九av| 国产精品久久久久一区二区三区 | 国产人成精品一区二区三 | 美日韩精品 | 伊人春色成人 | 午夜欧美a级理论片915影院 | 国产精品亚洲综合 | av官网在线| 精品欧美乱码久久久久久 | 亚洲精久 | 国产资源视频 | 欧美一级视频免费看 | 国产精品一区在线 | a毛片视频网站 | 操操日| www视频在线观看 | 欧美日本韩国一区二区 | 伊人免费在线观看 | 精品av天堂毛片久久久借种 | 免费观看成人鲁鲁鲁鲁鲁视频 | 99re99|