Crate cargo_testdox

Source
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§

TestResult
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 of TestResult.
prettify
Formats the name of a test function as a sentence.