Skip to content

setUp(bundles:) — multi-bundle YAML for view-test harnesses - #138

Merged
foscomputerservices merged 1 commit into
mainfrom
feat/view-test-bundles
Aug 21, 2026
Merged

setUp(bundles:) — multi-bundle YAML for view-test harnesses#138
foscomputerservices merged 1 commit into
mainfrom
feat/view-test-bundles

Conversation

@foscomputerservices

Copy link
Copy Markdown
Owner

What

ViewModelDisplayTestCase / ViewModelViewTestCase gain setUp(bundles: [Bundle], ...): the harness localizes from several bundles merged into one store — the test harness's own YAML plus another target's resources. The existing single-bundle: form remains and delegates to it, so current harnesses are untouched.

The key-echo contract from #137 applies across the merged store: untranslated keys resolve to key-derived placeholder text (elements keep their surface area), a harness with no YAML at all is supported, and the DocC callout stating this now sits on both overloads.

Also included: Localizable.text is now @MainActor (the SwiftUI resolver view it constructs belongs on the main actor; SwiftUI body call sites are unaffected).

Docs

  • DocC: setUp(bundles:) documents when to reach for it, with a two-bundle example; cross-links the single-bundle form.
  • Skills: fosmvvm-ui-tests-generator (SKILL.md key points + reference.md note) and the api-catalog display-view entry name both forms.
  • CHANGELOG [Unreleased] entries for both changes; plugin 2.30.0.

Testing

Full build clean; existing FOSTestingUITests / suite unaffected (the merged-store path reuses Collection<Bundle>.yamlLocalization, whose empty-set case still throws noResourcePaths and is caught for the zero-YAML echo fallback).

Releasing as 0.13.2.

… harnesses

ViewModelDisplayTestCase/ViewModelViewTestCase can now localize from several
bundles merged into one store; the single-bundle setUp delegates to the new
form. DocC on both overloads carries the no-YAML/key-echo contract. Skill
docs (ui-tests-generator, api-catalog) name both forms; plugin 2.30.0.

Also: Localizable.text is now @mainactor.
@foscomputerservices
foscomputerservices merged commit e31bdb6 into main Aug 21, 2026
13 checks passed
@foscomputerservices
foscomputerservices deleted the feat/view-test-bundles branch August 21, 2026 14:55
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