Testing Strategy

This project uses layered tests with explicit coverage gates.

Layers

  1. Unit + component (cargo test --bin afhttp)
  1. End-to-end stress (tests/stress.py, tests/cli_stress.py, tests/ws_stress.py)
  1. Coverage gate (scripts/coverage_gate.py)

Defect-driven regression policy

Every production bug fix must include a regression test.

Commands

Run all quality gates:

./scripts/test.sh

Run specific tiers:

./scripts/test.sh static
./scripts/test.sh unit
./scripts/test.sh e2e
./scripts/test.sh coverage