There is probably an XCTest equivalent of this.  See `XCTSelfTestMain` and `XCTestToolKey`