Skip to content

Add SwiftData Testing skill - #17

Open
akshaypimprikar wants to merge 1 commit into
Dimillian:mainfrom
akshaypimprikar:add-swiftdata-testing-skill
Open

Add SwiftData Testing skill#17
akshaypimprikar wants to merge 1 commit into
Dimillian:mainfrom
akshaypimprikar:add-swiftdata-testing-skill

Conversation

@akshaypimprikar

Copy link
Copy Markdown

Adds a swiftdata-testing skill: writing and reviewing SwiftData test code — in-memory ModelContainer fixtures, mock repository patterns for ViewModel tests, @ModelActor test isolation, Decimal money-value assertions, and content-hash dedup testing (e.g. CSV/API import idempotency).

No existing skill in this repo covers SwiftData testing specifically — swift-concurrency-expert and the SwiftUI skills are adjacent but don't overlap.

Follows the existing skill conventions: SKILL.md frontmatter, references/ for topic-specific detail, agents/openai.yaml for Codex registration. README table updated, count bumped to 17.

Patterns were extracted from a production SwiftUI + SwiftData app's test suite (including a real migrationPlan + isStoredInMemoryOnly bug), not written speculatively.

In-memory ModelContainer fixtures, mock repository patterns, @Modelactor
test isolation, Decimal money-value assertions, and content-hash dedup
testing. Extracted and generalized from a production SwiftUI + SwiftData
finance app's test suite.
@akshaypimprikar

Copy link
Copy Markdown
Author

@Dimillian Please take a look

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