我正在開發使用Xcode 6的iOS應用程序,並試圖在Xcode中運行測試套件。我可以運行測試,但沒有看到我的NSLog
語句輸出的位置。它們不在輸出面板中。Xcode iOS testsuite NSLog輸出丟失
如何找到輸出?
@interface ISTest : XCTestCase
@end
@implement ISTest
- (void) setUp {
[super setUp];
}
- (void) tearDown {
[super tearDown];
}
- (void) testExample {
NSLog(@"Where does this go???");
}
- (void) testPerformanceExample {
[self measureBlock^{
}];
}
@end
所有日誌語句都應該出現在調試區域中。你可以發佈一個示例測試用例嗎? – JAL 2014-11-05 23:36:29
@JAL調試區域在哪裏? – user1165560 2014-11-06 00:22:05
調試區域是Xcode中的下部視圖,當您點擊斷點時顯示控制檯和範圍內的變量。通過點擊Xcode右上角藍色矩形的方形按鈕,確保這個視圖是打開的。 – JAL 2014-11-06 14:40:29