-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode - Single XCTest suite gets run multiple times #11712
Comments
Hi @evliu |
Hi @evliu ![]() |
One other difference I do see from my local is this
I only get Also, I see in your one, I have no idea how the tests are running a second time, and executing 0 tests with a failure
|
Description
Our github action runs
xcodebuild test -project Project.xcodeproj -scheme Project\ DEV -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.2' -parallel-testing-enabled NO | xcpretty && exit ${PIPESTATUS[0]}
It starts the test correctly, but then midway through the current tests, it starts the same test again for no known reason and fails our tests intermittently but passes just fine after business hours.
Logs tend to look like this
Our Project.yml for the testing looks like this
Our test plan only has one set of XCTest, and locally, it always just runs that test suite and passes with no issues.
Any insights would be amazing, I've spent hours looking into this for many months now. Right now, we just re-run the action until it passes. It's also always a random test that seemingly fails even though it passes on the first run of the XCTest suite.
Platforms affected
Runner images affected
Image version and build link
all versions of the macos images for years now
Is it regression?
No
Expected behavior
The XCTest suite runs once and passes.
Actual behavior
The XCTtest suite runs more than once (up to three times) and one besides the first fails sometimes even though it says
0 tests executed
Repro steps
We run our test action, with the main part being
xcodebuild test -project Project.xcodeproj -scheme Project\ DEV -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.2' -parallel-testing-enabled NO | xcpretty && exit ${PIPESTATUS[0]}
The text was updated successfully, but these errors were encountered: