How do I get the testing library to run Suites in parallel on multiple simulators? My empirical observation is that my entire test pass (which is still 95% XCTest) will nicely spread out to as many simulators as I've made available to Xcode. But then all the Swift Testing suites launch on just on simulator? Am I just being unlucky? Or this not yet a supported behavior?
Swift Testing implements parallelization within a single process by leveraging Swift concurrency. XCTest's model of parallelization, which involves multiple processes, is not supported.
We are considering support for multiple processes running tests in parallel when using the open source Swift toolchain, however support for the iOS Simulator is implemented in Xcode and is not part of the Swift project. If you need support for this sort of parallelization in iOS or the simulator, I would recommend that you file feedback with Apple explaining your use case. Thanks!
1 Like