Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Testing

Use Rust’s test harness for unit and integration tests. Async tests use #[tokio::test] where needed.

Fast Test Cycle

cargo test --workspace --features default \
  --exclude autoagents-burn \
  --exclude autoagents-mistral-rs \
  --exclude wasm_agent

Lint and Format

cargo fmt --all
cargo clippy --all-features --all-targets -- -D warnings

Coverage

cargo install cargo-tarpaulin
cargo tarpaulin --all-features --out html

Keep tests focused and avoid unrelated changes. Match the style and structure used in existing tests across crates.