Tackling UI Test Execution Time Imbalance for Xcode Parallel Testing
Mar 16, 2020Ngoc Thuyen Trinh

Summary
This post details a technique to overcome Xcode's parallel testing limitation where tests of the same class are grouped and run on the same simulator. By inserting a random token into the test names passed to the `-only-testing` argument of `xcodebuild`, the grouping logic is bypassed, allowing individual tests within a class to be distributed across multiple simulators. This leads to improved parallelism and reduced overall test execution time in CI pipelines.