This page is a design/reference spec. Release truth lives in the runtime capability manifest and shipped product docs.
Test Strategy
Owner: PhantomPM QA + Platform Team
Last Updated: 2026-02-13
Status: Real
Purpose
Define release gates across docs, CLI, installer, integrations, and web surfaces.
Current Implementation State
- baseline build checks exist
- dedicated test suite coverage is limited
- this strategy defines the target steady-state quality system
Target State
- deterministic CI gates for docs, CLI, installer, integrations, and website
- automated matrix coverage for supported platform/shell combinations
- release blocking policy enforced from machine-readable test results
Test Layers
Layer 1: Build and Static Reliability
- workspace build must pass
- command boot path must execute without startup exceptions
Layer 2: CLI Smoke Tests
Required routes:
phantom --helpphantom --versionphantom contextphantom context add <path>phantom doctorphantom status --jsonphantom mcp tools
Layer 3: Docs Integrity
- link validation across docs
- capability matrix and README consistency check
- status tag coverage for user-facing feature claims
Layer 4: Installer Validation
- OS/arch matrix tests
- checksum mismatch handling
- PATH update behavior checks
Layer 5: Integration Validation
phantom integrate scanbaselinephantom integrate <target>success/failure statesphantom integrate doctorreporting quality
Layer 6: Website Validation
- route render checks
- metadata/SEO checks
- performance budget thresholds
- funnel event instrumentation checks
Release Gates
A release is blocked if:
- build fails
- CLI boot/help fails
- docs truth checks fail
- installer integrity checks fail (for installer releases)
Test Environment Matrix
- local macOS
- local Linux
- CI Linux baseline
- Windows coverage for install path and command boot
Acceptance Criteria
- all critical gates automated
- failures map to actionable diagnostics
- release notes include test coverage summary