Skip to content

test(image): Migrate specs to Swift Testing - #454

Merged
philprime merged 1 commit into
mainfrom
philprime/test/swift-testing-image
Oct 10, 2026
Merged

philprime merged 1 commit into
mainfrom
philprime/test/swift-testing-image

Conversation

@philprime

Copy link
Copy Markdown
Member

Migrate the three legacy image specs to Swift Testing using Arrange-Act-Assert and descriptive scenarios. Preserve initializer/default and equality coverage, and exercise each fitting mode through PDFImage initialization.

Replace the duplicated embedded JPEG strings with the same bytes in an SPM test resource. Existing image-pagination regressions and production code remain unchanged.

Verification

Focused tests, make test-macos, make lint, and git diff --check passed. The testing flag was restored. macOS only was tested locally. CoreData NSXPCConnection diagnostics remain present in both baseline and migrated full runs, without test failures.

Scope

Independent migration based directly on main, with no dependency on the other migration PRs. Quick/Nimble dependency removal is deferred until the whole suite has migrated.

@philprime
philprime marked this pull request as ready for review October 10, 2026 10:48
@philprime
philprime enabled auto-merge (squash) October 10, 2026 10:48
@github-actions

Copy link
Copy Markdown
Warnings
⚠️ The Package.swift was updated, but there were no changes in TPPDF.podspec, Package.resolved. Did you forget to update them?

Generated by 🚫 Danger Swift against 44ce1c8

@philprime
philprime merged commit 7536734 into main Oct 10, 2026
10 checks passed
@philprime
philprime deleted the philprime/test/swift-testing-image branch October 10, 2026 11:12
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