Files
mutator/tests
Cursor AgentandRobert C. Martin b494411b07 Compile the Xcode mutant instead of the original project.
xcodebuild was given the absolute path of the real project, and the worker
only symlinked that bundle. The tool realpaths the project, so every mutant
compiled the unmutated tree and survived.

The command now names the project relative to the working directory, which
the worker maps onto its overlay. The overlay copies an .xcodeproj or
.xcworkspace instead of linking it, so realpath stays on the copy that holds
the mutant. A file that only ends in .xcodeproj stays a link.

Proved by a fake xcodebuild that realpaths the project and reads the Swift
file the project names. The comparison and the negated condition are killed,
and a constant survives. The same check uses a workspace. A baseline that
exits 1 records no kills. The tests failed first on an absolute path, then
on a symlink that escaped the worker. The suite passes (118 tests, and the
SwiftPM run is skipped because swift is not installed).

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