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:
Code Block 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
I have the same problem, could somebody help?
I'm running Xcode 12.4 and i also can't see Anything for Memory or CPU. I have the exact same problem. Were you able to figure this out yet?

Same issue here. Xcode 12.4. Have you guys found a solution?

Performance testing with XCTMetrics broken in Xcode 12
 
 
Q