Expand description
A Cargo subcommand for printing your Rust test names as sentences.
Also contains functions to parse the (human-readable) output of cargo test
,
and to format test names as sentences.
Further reading and context: Test names should be sentences.
Structs§
- Test
Result - The (prettified) name and pass/fail status of a given test.
Enums§
- Status
- The status of a given test, as reported by
cargo test
.
Functions§
- get_
cargo_ test_ output - Runs
cargo test
with any supplied extra arguments, and returns the resulting standard output. - parse_
line - Parses a line from the standard output of
cargo test
. - parse_
test_ results - Parses the standard output of
cargo test
into a vec ofTestResult
. - prettify
- Formats the name of a test function as a sentence.