XCUITest using Robot pattern can't print the erroneous line
问题 I'm trying to refactor the UI test of my project to use Robot pattern. But it seems like it can't show what line in the code is the one with the error. Here's the screenshot: As you can see here, the testShowAppHealthAndBackWithoutRobot() can show the error in red line while the testShowAppHealthAndBack() doesn't. Here are the robots's code: class Robot { let app: XCUIApplication init(app: XCUIApplication) { self.app = app } func tap(_ element: XCUIElement, timeout: TimeInterval = 5) { guard