Verify generated code compiles across Swift language modes#15
Merged
Conversation
Add compilation verification targets that build generated code under 4 combinations of Swift language mode (5/6) and default actor isolation (nonisolated/MainActor). A build tool plugin generates fixture files at build time from theme.json, replacing previously committed generated files. - Add --skip-defaults flag to ThemeKitGeneratorCLI - Add internal GenerateTestFixturesPlugin (BuildToolPlugin) - Add 4 fixture targets with theme.json + hand-written Theme+Defaults.swift - Add GeneratedCodeCompilationTests with runtime smoke checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 98.89% 98.91% +0.01%
==========================================
Files 35 36 +1
Lines 2178 2202 +24
==========================================
+ Hits 2154 2178 +24
Misses 24 24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
theme.json--skip-defaultsflag toThemeKitGeneratorCLIso the plugin can skip the placeholder defaults fileTest plan
swift buildsucceeds — all 4 fixture targets compile with plugin-generated codeswift testpasses — all 219 tests pass includingGeneratedCodeCompilationTests🤖 Generated with Claude Code