Repository navigation
docs: test an iOS app's logic in a macOS Swift package and boot a simulator only for app-hosted tests (DOTGH-8) - #14
Conversation
…ulator only for app-hosted tests (DOTGH-8) A simulator's first boot costs a hosted Mac about 7 minutes wherever the job runs it, and booting it early only slows the steps beside it. IOS.md now has a "Unit tests and PR CI" section every iOS repository follows: the logic and its tests live in a local Swift package tested with swift test on macOS, the package build keeps the host's stores in memory, the iOS suite only builds the app, and the few app-hosted tests run in their own suite that only their paths and every release reach. Cowtail's measurements are the evidence and its files the reference. CI.md points to the section where it describes suite jobs.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e10e9c15e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
… test rule (DOTGH-8)
Ticket
DOTGH-8
Problem
A simulator's first boot costs the hosted
xcode-27image about 7 minutes wherever the job runs it. Cowtail measured that booting it early only slows the steps beside it, so a sharedios-simulator-bootaction would not help.Solution
IOS.mdgets a Unit tests and PR CI section with four rules: logic and unit tests in a local Swift package tested withswift teston macOS; the package build keepsUserDefaults/keychain in memory behind one chokepoint; the iOS suite lints, tests the package, builds the app for the simulator (xcodebuild build, nothing booted) and runs static checks; app-hosted tests run in their own suite routed by an exact-path rule that a routing test enforces, and every release runs it. It also gives the default (sources compiled into the app module) and the alternative (a linked package product), and keeps UI tests out of hosted CI.ios-verify.yml,ios-sim-verify.yml,ios/CowtailKit/Package.swiftandscript/ci/suites.test.ts.CI.mditem 2, where it describes suite jobs, points to the section.REPOSITORIES.md's IOS.md pointer now mentions tests too.ios-simulator-bootplan is not built.Validation
MaudeCode/cowtailmain, checked withgh api. Rule 2's compilation condition and chokepoint (COWTAIL_PACKAGE,App/HostStores.swift) match Cowtail's source.node --testpasses, and the change touches no code.Regression proof
Not applicable: a documentation-only change with no behavior or test.
Tests
No test added. The change is documentation only, so no contract needs a test.
Risk and rollback
Docs only. Revert the commit to roll back.