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

我可以多次運(yùn)行 XCTest 套件嗎?

Can I run an XCTest suite multiple times?(我可以多次運(yùn)行 XCTest 套件嗎?)
本文介紹了我可以多次運(yùn)行 XCTest 套件嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

是否可以讓 Xcode 多次運(yùn)行您的單元測試?

Is it possible to have Xcode run your unit tests multiple times?

我在幾個單元測試中遇到了導(dǎo)致間歇性故障的問題.現(xiàn)在我認(rèn)為我已經(jīng)修復(fù)了它,我唯一的選擇似乎是混合 ? + U 直到我有 95% 的把握該錯誤是走了.

I had an issue in several unit tests that caused intermittent failures. Now that I think I've fixed it, my only option appears to mash + U until I'm 95% confident the bug is gone.

我知道其他單元測試框架可以很容易地多次運(yùn)行單個測試、測試用例或測試套件.我們在 XCTest 中是否擁有這種奢侈?

I know other unit testing frameworks make it quite easy to run a single test, test case, or test suite multiple times. Do we have this luxury in XCTest yet?

推薦答案

或許對你使用有幫助

func testMultiple() {
    self.measureBlock() {
            ...
            XCTAssert(errMessage == nil, "no error expected")        
    }
}

這會多次運(yùn)行 self.measureBlock() 中的代碼來測量平均時間.

This runs the code inside self.measureBlock() multiple times to measure the average time.

更改代碼是可行的,但您可能還是想知道執(zhí)行時間.

It is work to change the code, but you might want to know the execution time anyways.

這個答案可能與您想要的足夠接近,并且很容易做到.

This answer might be close enough to what you want and it is easy to do.

這篇關(guān)于我可以多次運(yùn)行 XCTest 套件嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Android Test Automation tools(Android 測試自動化工具)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標(biāo)成員身份可見性)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
What is the difference between a .xib file and a .storyboard?(.xib 文件和 .storyboard 有什么區(qū)別?)
Is there a way to downgrade from iOS 5.1 to iOS 5.0?(有沒有辦法從 iOS 5.1 降級到 iOS 5.0?)
How can I manually switch between UIViewControllers in storyboard?(如何在情節(jié)提要中的 UIViewControllers 之間手動切換?)
主站蜘蛛池模板: 日韩欧美国产一区二区三区 | 日韩精品一区二 | h视频在线免费 | 欧美视频第二页 | 久草热播 | 在线视频h| 精品国产一区探花在线观看 | 污视频在线免费观看 | 国产精品国产成人国产三级 | 亚洲欧美一区二区三区1000 | 97超级碰碰 | 久久精品久久精品 | 欧美激情精品久久久久久变态 | 亚洲视频在线观看一区二区三区 | 国内精品久久久久久影视8 最新黄色在线观看 | 91精品久久久久久久久中文字幕 | 日韩视频成人 | 亚欧性视频| 夜夜骑天天干 | 成人不卡 | 最新91在线 | 久久综合入口 | 人人澡视频 | 成人网视频 | 午夜一区 | 99热精品久久 | 亚洲毛片 | 欧美日韩亚 | 欧美久久一区二区三区 | 久久成人人人人精品欧 | 国产婷婷综合 | 成人在线中文字幕 | 欧美亚洲一区二区三区 | 国内精品99| 日本精品视频在线观看 | 欧美亚洲视频 | 久久久久国产精品一区二区 | 麻豆av一区二区三区久久 | 在线欧美一区 | 懂色av色香蕉一区二区蜜桃 | 精品久久久久久亚洲综合网 |