- With
--nocapture, libtest does not capture test output, so it shows under "More from " instead of under each test. cargo test -qhides cargo'sRunninglines, so passing targets show as#1,#2, and doc tests from more than one package can share a row.
Older cargo (for example 1.95) puts test binaries in target/debug/deps, and their paths have no package name. Then cargo tparse guesses the name:
- It uses the crate name of the package's lib or
src/main.rsbin, which has_where the package name has-. - A package with neither (only
src/bin/*.rs, or[lib] test = false) can show under the package before it. - When cargo's rerun hint for a failed target names the package, all targets of that package use the name. A
--progressline printed before the hint keeps the guessed name. - A guessed name is never used in
-pof a rerun command.