Skip to content

Testing & Alpha Status

1. Automated Test Suite Inventory (v0.1.0)

Section titled “1. Automated Test Suite Inventory (v0.1.0)”

Verified counts from docs/TESTING.md (synced to upstream commit c6116b3):

  • Rust library unit tests (src/lib.rs): 423 passed, 0 failed, 0 ignored
  • Rust binary unit tests (src/main.rs): 4 passed, 0 failed, 0 ignored
  • Rust integration suites (tests/*.rs): 34 passed across 7 integration binaries (0 failed, 0 ignored)
  • Rust doc-tests (src/): 3 passed, 0 failed, 0 ignored
  • Total Rust tests: 464 passed, 0 failed, 0 ignored
  • Vendored libp2p-stream tests (vendor/libp2p-stream): 4 unit + 2 doc-tests passed, 0 failed, 0 ignored
  • Frontend unit tests (web/test/*.test.cjs): 44 passed, 0 failed
  • Isolated binary HTTP & Embedded SPA smoke test (scripts/web-smoke.mjs): Verifies single-binary startup, security headers, #code= launch exchange, 401 JSON fail-closed /api/v1/status, /healthz, /api/v1/fs/list, /metrics/prometheus, upload-local / download-local protected-root 403 guards, graceful shutdown, and --no-web-ui.
Area Proven Locally (Verified in Repo) Still Unproven / Open Ahead
Core Crypto, RS 8+6, Packing & Bounds 464 Rust tests plus 4 unit + 2 doc-tests in vendored libp2p-stream, covering AEAD, RFC 9180 HPKE host sealing, 64 MiB RS 8+6, SYMPACK2, inbound /24//48 & /p2p-circuit starter/capsule/connection/Kademlia caps, 256-object dust floors, PeerRpcRateLimiter, and postcard pre-decode size caps (tests/protocol_fuzzing_test.rs). Independent third-party cryptographic and code security audit; multi-subnet / ASN Sybil testing.
Sentinel Audits, Repair & GC Automated tests verifying PlacementStreams 64 KiB Merkle block audits, 24h Healthy / 5m Urgent / 60s Critical repair grace, Local-Source zero-WAN repair + P2P fallback, 85% -> 70% (>= 30d) bootstrap reclaim, and 90% -> 80% (>= 60d) stale-partner GC. Long-duration live repair throughput and churn benchmarks on residential WANs.
Two-Tier Cold Recovery tests/disaster_recovery_drill_test.rs (3 tests: capsule export/hydration & crash journal reconciliation), tests/recovery_capsule_test.rs (stale/offline replica resolution), plus 200-peer fanout and 5 TiB delta compaction tests in src/recovery/engine/tests/. Multi-month live clean-machine restores across real WAN NAT peers.
Bilateral Accounting & Scale tests/economics_simulation_test.rs (7 tests: GiB-hour symmetry, 512 MiB / 5% pool clamping, 30d spend/bank horizons, owner-delete severance), tests/resource_scheduling_test.rs (10 tests), and tests/scale_simulation_test.rs (6 tests: synthetic 5 TiB metadata scaling). Real multi-TB payload end-to-end backup and restore over WAN; multi-node 14+ residential ISP / CGNAT soak testing.
Web UI & Local API 44 frontend unit tests plus scripts/web-smoke.mjs against the compiled binary (~39 MiB release executable). Cross-browser UI stress testing on large > 100 GiB transfers.
Terminal window
# 1. Frontend unit tests, TypeScript check, Vite build & audit
cd web && npm ci && npm test && npm run build && npm audit --audit-level=high && cd ..
# 2. Rust formatting, strict Clippy lints, license/advisory & unused-dep gates
cargo fmt --all -- --check
cargo clippy --locked --all-targets --all-features -- -D warnings
cargo deny check
cargo machete
# 3. Full Rust test suite (464 tests) + vendored libp2p-stream (4 unit + 2 doc-tests)
cargo test --manifest-path vendor/libp2p-stream/Cargo.toml
cargo test --locked -- --test-threads=4
# 4. Release binary + isolated embedded Web UI smoke test
cargo build --release --locked
node scripts/web-smoke.mjs ./target/release/backdit