Testing
209 words1 min read1 subsectionFrom the README at ft 0.15.21
On this page1
The project maintains extensive test coverage:
| Category | Count | Purpose |
|---|---|---|
| Test annotations | 64657+ | Module-level correctness, property checks, and async test coverage |
| Core Rust test files | 1051 | Cross-module behavior under crates/frankenterm-core/tests/ |
| E2E shell scripts | 305 | Full-pipeline validation |
| Criterion bench files | 119 | Performance regression detection |
| Fuzz targets | 52 | Security / robustness |
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-workspace-test \
cargo test --workspace # all tests
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-core-lib-test \
cargo test -p frankenterm-core --lib # core lib tests
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-subprocess-test \
cargo test -p frankenterm-core --features subprocess-bridge # specific feature
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-proptest \
cargo test -p frankenterm-core --test 'proptest_*' # property tests
For a fast supplemental workspace-format check, the dependency-free atlas
crate exposes the unchanged canonical formatting test. It still runs
cargo fmt --all -- --check across the workspace, verifies the formatter's
positive and negative controls, and requires a retained RCH source receipt:
FT_FORMAT_BASE=$(git rev-parse HEAD)
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 RCH_DISABLE_TARGET_REUSE=1 \
rch --no-self-healing exec \
--base "$FT_FORMAT_BASE" --clean-overlay --no-overlay -- \
env FT_FORMAT_PROOF_SHA="$FT_FORMAT_BASE" \
FT_FORMAT_PROOF_SOURCE_MODE=rch-clean-baseline-no-overlay-v1 \
CARGO_TARGET_DIR=/tmp/ft-workspace-format-lean \
cargo test -j 2 -p frankenterm-core-atlas-pack-types \
--test workspace_format_proof --locked \
workspace_formatting_is_clean_under_rch_source_contract -- --exact --nocapture
This checks the committed revision, excluding local edits. Count it only when
the remote transcript shows the named test passing, 1 passed, 0 filtered out, and WORKSPACE_FORMAT_PROOF_SUCCESS naming that revision. An exit-zero
command alone is insufficient. The mandatory core-package verification
command in AGENTS.md remains in effect.
The per-job target prevents this tiny check from waiting on a larger build's
shared Cargo lock; it trades incremental reuse for a small isolated compile.
Methodology playbooks
docs/methodology/proof-techniques.md— when to use Loom / TLA+ / Stateright / proptest / dylint / cargo-deny, with exemplar files in this repodocs/methodology/statistics.md— sequential testing, concentration-of-measure sample sizing (Hoeffding + Bernstein), conformal SLO bands, Mann-Whitney U / KS, with cross-links tobench_stats::*functionsdocs/audit-checklist.md— per-substrate audit pattern catalog (the substrate-audit families listed above)