【发布时间】:2017-02-28 09:49:02
【问题描述】:
当像这样使用 XCTest 方法 recordFailureWithDescription 时:
func testRecordFailureMessageNotWorking() {
XCUIApplication().button["Login"].tap()
self.recordFailureWithDescription("Custom Description", inFile: #file, atLine: #line, expected: true)
}
控制台输出不再像在 xcode 7 中那样提供自定义描述或文件名或行号。
有人对此有任何想法吗?或者获取自定义描述的方法?
【问题讨论】:
标签: xcode8 xctest xcode-ui-testing xctestcase