CI / ci (push) Canceled after 0s
Block every app launch behind an Engine gate per wayfinder map #12: discover the user-installed hermes binary via the documented six-path probe (#36), health-check it with acp --check (stdin closed, 5 s per-candidate timeout, exit-status branching), version via acp --version, and record every completed check in Application Support state.json (#39). The gate is a blocking sheet with checking/pass/fail cards (#38/#40), app-scoped so only the first window per launch auto-checks (#41); an About window mirrors the state file read-only. Provisioning (#13) has a stub seam at onEnginePass. 12 unit tests drive the real Process path with fake hermes binaries; build, tests, swiftformat, swiftlint all green. Closes #42 [Generated by AI]
1.0 KiB
1.0 KiB
MuseionTests
Purpose
Unit tests for the Museion application target, hosted in the app process (TEST_HOST).
Ownership
Owned by the root AGENTS.md contract.
Local Contracts
- Uses Swift Testing (
@Test,#expect) — not XCTest. - Imports
@testable import Museion; app code is default-MainActor, so cross-actor tests need@MainActoror nonisolated declarations in app code. - Deployment target and versions follow the app target; leave
CURRENT_PROJECT_VERSION = 1here.
Work Guidance
- Non-trivial logic leaves one runnable check behind: the smallest test that fails if the logic breaks. No fixtures or per-function suites unless asked.
EngineGateTests.swiftbuilds fakehermesshell scripts in temp dirs and runs them through the realProcesspath — copy that pattern for any future child-process testing.
Verification
xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' -only-testing:MuseionTests test
Child DOX Index
- None — flat directory.