Thanks to visit codestin.com Credit goes to lib.rs
rstest
Run this command in a terminal, in your project's directory:
cargo add --dev rstest
to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:
cargo add rstest
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
rstest = "0.26.1"
The rstest library will be automatically available globally. Read the rstest library documentation.
Back to the crate overview.