Busca en todas las páginas de la documentación
12 pages in this section.
The mental model behind Rust's built-in test harness: how #[cfg(test)] modules, the tests/ directory, and doctests each answer a different question about correctness.
`#[test]`, assertions, and `cargo test`.
In-module tests and the `tests/` directory.
Executable documentation examples.
Fixtures, helpers, and shared setup.
`mockall` and trait-based seams.
`insta` for output regression.
`cargo-llvm-cov` and gating on quality.
Fast, deterministic, meaningful tests.