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

android 儀器測試的輸出在哪里?

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

問題描述

限時送ChatGPT賬號..

我設法讓 gradle cC 工作.我的測試只是打印出來并記錄一行文本.

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 測試的輸出(它在 .../app/build/test-results/中).但仍然沒有運氣.

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

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

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

推薦答案

運行gradlew connectedCheck會在build目錄生成測試結果,見

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

uild
eportsandroidTestsconnected
  and
uildoutputsandroidTest-resultsconnected

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

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:測試輸出

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

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

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.

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

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

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 国产精品第二页 | 亚洲最大的网站 | 欧美三级a做爰在线观看 | 天天射日日干 | 天天操天天干天天爽 | 久久夜色精品 | 午夜性福利 | 久久成人毛片 | 欧美激情xxx | 日本国产在线观看 | 黄色av日韩| 久久九九国产 | 亚洲视频一区在线观看 | 91久久 | 国产传媒一区二区 | 免费福利在线观看 | 亚洲欧美另类图片 | 亚洲69 | 999成人网| 欧美精产国品一二三区 | 国产又粗又猛又黄又爽无遮挡 | 免费一区二区三区 | 99在线播放| 成人小视频在线 | 91狠狠操| 97中文字幕 | 成人欧美日韩 | 国产欧美成人 | 日韩在线不卡视频 | 伊人成人在线视频 | 男人的天堂亚洲 | 日韩欧美一区二区三区 | 欧美日韩小视频 | 中国农村毛片免费播放 | 91久久综合 | 91女人18毛片水多国产 | 午夜视频一区二区三区 | 免费黄色小视频 | 国产视频一区二 | 神马福利视频 | 久久精品一区二区三区四区五区 |