Unit tests live beside code in a `#[cfg(test)] mod tests`, integration tests in tests/. Examples in doc comments are compiled and run by cargo test. rustfmt formats and clippy lints, both standard in CI.
← Rust theorytheory 0/50 · 0%
Toolchain · easy
20. Testing and Documentation
cargo test, doc tests and clippy.
Check your understanding
1. Where do integration tests live?
2. Are doc-comment examples executed?