# Testing * [Agent command policy](agent-command-policy.md) — **read before any shell command** (install, prepare, validation, e2e, Expo example typecheck + documented-path iOS **link** + per-module duplicate ObjC class check (`yarn test-expo-fixture:ios:dupes`), RN CLI prebuilt RNCore iOS **build**; not Detox); **`yarn` / `yarn lerna:prepare` must exit 0 before any other command**; [install / patch / fmt gate](agent-command-policy.md#install-patch-fmt-gate-blocking) before native `:build` * [Documentation/commit policy](../documentation-policy.md) — public vs ephemeral vs private, OKF scan, [Efficiency](../documentation-policy.md#efficiency) * [Change authoring workflow](change-authoring-workflow.md) — verified product change loop (unit-focused → `documentation?` → area-focused `independent-review` → commit); [§ gates](change-authoring-workflow.md#gates); [§ frozen tree](change-authoring-workflow.md#frozen-tree); [§ quality standards](change-authoring-workflow.md#quality-standards); [§ validation evidence (blocking)](change-authoring-workflow.md#validation-evidence-blocking); [§ commit](change-authoring-workflow.md#commit); [coverage evidence package](coverage-design.md#coverage-evidence-package) * [compare-types justification bar](../../.github/scripts/compare-types/README.md#justification-bar) — firebase-js-sdk type/API drift justification * [Iteration vocabulary](iteration-vocabulary.md) — work type, tier, and queue field identifiers * [Running e2e tests](running-e2e.md) — canonical e2e commands; start here for `:test-cover`; [§ agent rule (read first)](running-e2e.md#agent-rule-read-first); [§ test-app native modules](running-e2e.md#test-app-native-modules) (`NativeRNFBTesting` / `RNFBTestingMessaging` probes vs package `Coverage` flush); [§ platform coverage gate](running-e2e.md#platform-coverage-gate-blocking); [§ slot lifecycle](running-e2e.md#slot-lifecycle); [§ slot index](running-e2e.md#e2e-slot-index); [§ iOS slot simulators](running-e2e.md#ios-slot-simulators) (exact `.detoxrc` base or fail; [migration](running-e2e.md#ios-slot-simulator-migration)); [§ infrastructure change bar](running-e2e.md#e2e-infrastructure-change-bar); [§ startup fail-fast poll](running-e2e.md#startup-fail-fast-poll) * [E2e parallel design](e2e-parallel-design.md) — why resources collide, parameterization, coordinator rollout (commands stay in running-e2e) * [Validation checklist](validation-checklist.md) — validation command sequence; [§ OKF bundle review](validation-checklist.md#okf-bundle-review) (frozen `independent-review` when those files are in the tree) * [Coverage design](coverage-design.md) — coverage policy, Codecov/native gates (merged Android `jacocoTestReport`; iOS unit + e2e LCOV); [§ coverage expectations (policy)](coverage-design.md#coverage-expectations-policy); [§ evidence package](coverage-design.md#coverage-evidence-package); [§ react-native-coverage](coverage-design.md#react-native-coverage) (package `flush()`; probe modules in [running e2e](running-e2e.md#test-app-native-modules)); [§ coverage migration rollback](coverage-design.md#coverage-migration-rollback); [iOS Ruby SimpleCov](coverage-design.md#ios-ruby-simplecov) (`yarn tests:ios:ruby`, flag `ios-ruby`) * [Android unit testing ADR](android-architecture-decisions.md#androidtest-ad-1) — JUnit-first; Robolectric when Android APIs are required; omit `@Config` / `sdk` unless proven (`AndroidTest-AD-1`) * [iOS unit testing ADR](ios-architecture-decisions.md#iostest-ad-1) — macOS/host-first in-package XCTest (Foundation-only, or [stub headers](ios-architecture-decisions.md#iostest-ad-1-stub-headers) for React/Firebase/UIKit); Simulator only if UIKit required (`IosTest-AD-1`) * [Published types ADR](architecture-decisions.md) — attw / Expo plugin decisions (`Types-AD-*`); [Types-AD-5](architecture-decisions.md#types-ad-5--pack-ignores-nested-ios-unit-build-trees--accepted) (attw allowlisted pack stage) * [Firebase testing project](firebase-testing-project.md) — cloud vs emulator, live FIS/RC, helper callables, rules/indexes, deploy * [Test app dependency pins](test-app-dependency-pins.md) — intentional RN / CLI locks (mobile + Expo/RN CLI fixtures share one line; `react-native-macos` is independent) * [Local iOS e2e reproduction (Tart lab)](local-ios-e2e-reproduction.md) — optional VM stress path; [temporarily suspended](local-ios-e2e-reproduction.md#status-suspended); canonical e2e stays [running e2e](running-e2e.md)