Post

Replies

Boosts

Views

Activity

Performance testing with XCTMetrics broken in Xcode 12
Hello, Since Xcode 12, I can't see the test report popup when running performance tests. Therefore, I am not able to set the baseline anymore. This used to work fine in Xcode 11. Here's an example: swift func testStoragePerformance() throws {     let application = XCUIApplication()     application.launch()     let storageMetric = XCTStorageMetric(application: application)     self.measure(metrics: [storageMetric]) {       self.runUIFlow(application: application)     }   } When running the test above, Xcode shows the test as successful and that's it... Same thing happens with XCTCPUMetric and XCTMemoryMetric. It seems to only work with XCTClockMetric (baseline can be set then). I am able to reproduce this bug on a new project created in Xcode 12.4. I have reached out to people at Apple and also created a ticket in Feedback Assistant but I've never got any response. Is anyone else experiencing the same issue? Is this a known bug? Thanks
3
0
1.4k
Mar ’21