I have 7 XCTest targets in Xcode. When run locally they all pass.
When run via Bamboo agent (same system that passed local run) around 2-4% of the test cases will randomly fail and they differ from run to run.
All of the failed test cases failed with duration < 1 sec.
Has anyone else experienced this? If so, do you know of any solutions?