Clue-Solver

Clue Solver Testing Suite

Coverage Priorities

The suite is intentionally logic-heavy because incorrect deductions damage trust faster than ordinary UI bugs.

  1. Solver correctness
  2. Replay, undo, resume, and persistence
  3. Edition and catalog integrity
  4. Setup and turn-entry flow safety
  5. UI smoke coverage and accessibility regression checks

Current Test Layers

Swift Testing domain, regression, and integration coverage

ClueSolverTests/DeductionEngineTests.swift

ClueSolverTests/DeductionEngineTests.swift also includes:

ClueSolverTests/AppInfrastructureTests.swift

XCTest UI coverage

ClueSolverUITests/ClueSolverUITests.swift

XCTest performance coverage

Logic Fast

Run solver, regression, oracle, persistence, and performance tests without the UI suite:

xcodebuild test \
  -project ClueSolver/ClueSolver.xcodeproj \
  -scheme ClueSolver \
  -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
  -skip-testing:ClueSolverUITests

UI Smoke

Run the UI suite by itself:

xcodebuild test \
  -project ClueSolver/ClueSolver.xcodeproj \
  -scheme ClueSolver \
  -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
  -only-testing:ClueSolverUITests

Full Regression

Run the full unit, integration, UI, oracle, and performance suite:

xcodebuild test \
  -project ClueSolver/ClueSolver.xcodeproj \
  -scheme ClueSolver \
  -destination 'platform=iOS Simulator,name=iPhone 16 Pro'

Suggested CI Matrix

PR-Fast

Nightly-Full

Release Candidate

Run the full suite on both iPhone and iPad destinations, then add at least one physical-device pass for launch and accessibility sanity.

Remaining Gaps