Skip to content

Add a green Swift XCUITest example - #64

Merged
pda merged 1 commit into
mainfrom
add-swift-xcuitest-example
Aug 25, 2026
Merged

Add a green Swift XCUITest example#64
pda merged 1 commit into
mainfrom
add-swift-xcuitest-example

Conversation

@pda

@pda pda commented Aug 25, 2026

Copy link
Copy Markdown
Member

Why

The existing Swift example uses SwiftPM on Linux, so it cannot exercise Xcode, an iOS Simulator, or .xcresult generation. Start with a normal passing XCUITest integration before separately introducing the XCTest runner-restart failure mode.

What

  • add a minimal iOS app and two passing UI tests collected by test-collector-swift
  • run an explicit shared scheme and lexical test plan on the macos queue
  • inject Buildkite/Test Engine environment into the Xcode test runner and retain the .xcresult bundle
  • deliberately omit runner termination and retries; those are isolated in the stacked reproduction PR

Verification

swift-xcuitest/bin/test passed both UI tests on an iPhone 17 Pro Simulator with Xcode 26.5. The result bundle reports 2 passed, 0 failed.

Rollback

Revert this PR; it adds only an isolated example and pipeline step.

Related

Add a minimal iOS app and passing UI test target that loads the Swift
Test Engine collector. The shared scheme and lexical test plan make the
fixture deterministic, while the runner command retains an xcresult bundle
for comparison and injects Buildkite metadata into the Xcode test process.

Run the example on the Open Source cluster's macos queue. Keep this first
slice free of runner crashes and retries so it establishes a normal green
collector integration before a stacked change exercises process loss.

Amp-Thread-ID: https://ampcode.com/threads/T-01a036f0-4e44-73ab-a085-68af2e00b5cb
Co-authored-by: Amp <amp@ampcode.com>
@pda
pda merged commit 92fbb7b into main Aug 25, 2026
4 checks passed
@pda
pda deleted the add-swift-xcuitest-example branch August 25, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant