Repository navigation
Conversation
|
Two integration questions for maintainer guidance:
Local validation passes with Xcode 27.2 beta: full SwiftPM Debug and Release runs, focused tests with the native SwiftPM build system and fresh scratch directory, and Xcode clean package tests with fresh DerivedData. The 10 new tests include executable-discovery isolation, large-output capture, and timeout cleanup. Existing performance tests are cancelled by the repository's guard in the tested configurations. |
d404017 to
3fdc001
Compare
|
Updated the base branch to run the CI. |
921336d to
0447975
Compare
|
@jakepetroules |
|
I gave this a try on swift test --build-system native --scratch-path "$(mktemp -d)" --filter XcodeProjectToolTestsSwiftPM built |
|
Suggestion (non-blocking) I tried a patch for the lookup issue and attached it here. All seven CLI tests passed with the default build directory, a fresh If you already have a fix in flight, happy to test yours. Feel free to use any of this if it helps. |
Type of change
Summary
Add end-to-end tests for the compiled
xcprojformatterexecutable to catch regressions in CLI input/output handling, formatting, and in-place updates. A malformed update must fail without changing the original file.Related issue
Standalone coverage of existing functionality; no related issue.
Changes
XcodeProjectToolTestswith seven CLI tests covering help, stdin/stdout, positional input, inner and outer project paths, file output, and successful and failed in-place updates.BUILT_PRODUCTS_DIRor the test/resource bundle location.XCPROJFORMATTER_PATHcan explicitly select an executable. Missing executables fail with the attempted path; discovery does not recursively scan directories or fall back to other builds.No production code, CLI behavior, public API, or schema changes. Full CLI error-matrix coverage is outside this PR.
Testing
Validated locally on macOS with Xcode 27.2 beta:
swift testswift test -c releaseswift test --build-system native --scratch-path <temporary-directory> --filter 'XcodeProjectToolTests|ToolTestSupportTests'xcodebuild -scheme xcode-project-format-Package -destination 'platform=macOS' -derivedDataPath <temporary-directory> clean testgit diff --checkAll 10 new tests pass. Existing performance tests are cancelled by the repository's performance-test guard in the tested configurations; these runs do not claim performance-test coverage. Other platforms were not validated.
Checklist