cargo test
- run all tests, which are not ignored. Their stdout is not shown/printed.
cargo test --help
- see the documentation of cargo test
. Note that it does not display the [test options].
cargo test top_level_mod::tests::test_fn_name -- --exact
- run a single test [^1]. The --exact
argument ensures that similar test names won't be executed [^2]. Note that the path does not include the crate name.