Skip to main content

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
rustup component add llvm-tools-preview
make coverage-rust

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