I hope the proposal could also address this issue: "Problem with --enable-test-discovery and the XCTestObservationCenter". I have a similar problem when running tests for SwiftWasm apps in browsers, we need to communicate test results back to the user, but the default test reporter does not provide parseable output. Installing a custom JSON test reporter as an observer helps, but unfortunately it's not possible with --enable-test-discovery.
I've recently got a new XCTMain override merged to XCTest, which allows passing custom observers to replace the default test reporter, maybe something could be built on top of that?
2 Likes