Skip to content

test: migrate SolarTests to Swift Testing - #78

Merged
ceeK merged 2 commits into
mainfrom
chowell/swift-testing-migration
Aug 30, 2026
Merged

ceeK merged 2 commits into
mainfrom
chowell/swift-testing-migration

Conversation

@ceeK

@ceeK ceeK commented Aug 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Rewrite SolarTests from XCTestCase to a Swift Testing struct, translating XCTAssert*/XCTFail to #expect/#require
  • Parameterize sunrise/sunset over the fixture cities via @Test(arguments:) so each city reports individually instead of one opaque pass/fail
  • Bump deployment targets (Package.swift and Solar.xcodeproj) from iOS 12/macOS 10.13/tvOS 12/watchOS 4 to iOS 13/macOS 10.15/tvOS 13/watchOS 6 — the minimums Swift Testing requires

Test plan

  • swift build && swift test
  • xcodebuild test -scheme "Solar macOS"
  • xcodebuild test -scheme "Solar iOS" (simulator)
  • Confirmed resource loading works on both the SPM (Bundle.module) and Xcode-project (Bundle(for: BundleToken.self)) paths

🤖 Generated with Claude Code

Swift Testing requires iOS 13 / macOS 10.15 / tvOS 13 / watchOS 6
minimum, so bump the package and Xcode project deployment targets to
match (from iOS 12 / macOS 10.13 / tvOS 12 / watchOS 4).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FroLiTxrdpG22rB3BkMDqq
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MACOSX_DEPLOYMENT_TARGET = 10.13;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to bump to get swift testing support

@ceeK
ceeK marked this pull request as ready for review August 30, 2026 21:38
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FroLiTxrdpG22rB3BkMDqq
@ceeK
ceeK merged commit 9d30b8e into main Aug 30, 2026
6 checks passed
@ceeK
ceeK deleted the chowell/swift-testing-migration branch August 30, 2026 21:45
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