Files
mutator/tests
Cursor AgentandRobert C. Martin 7c72d9deba Run swift test or xcodebuild, and keep Swift build output private.
A SwiftPM package is tested with swift test from the directory that
holds Package.swift. An Xcode or iOS project is tested with xcodebuild
test. The scheme is --xcode-scheme, otherwise the first shared scheme,
otherwise the project name. --xcode-destination is one argument, so a
simulator name with spaces is not split. A file inside a package is not
also sent to xcodebuild. iOS still needs a Mac with Xcode; the command
is only constructed here.

Workers no longer link .build, .swiftpm, or DerivedData. A symlink would
make swift test and xcodebuild write the real tree's build products,
and parallel workers would share them.

Proved by tests/test_swift.py. The command tests failed first because
Swift returned false, xcode_destination was not a parameter, and a
worker linked .build. A run with fake swift and xcodebuild on PATH then
showed swift test and xcodebuild test -destination with the scheme.

Co-authored-by: Robert C. Martin <[email protected]>
2026-11-26 00:00:21 +00:00
..