# 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 `@MainActor` or nonisolated declarations in app code. - Deployment target and versions follow the app target; leave `CURRENT_PROJECT_VERSION = 1` here. ## 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. ## Verification - `xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' -only-testing:MuseionTests test` ## Child DOX Index - None — flat directory.