allure-cargotest
allure-cargotest is the main user-facing crate in this workspace.
It wires Allure test lifecycle handling into cargo test, writes result files, and
re-exports the #[allure_test] and #[step] macros.
Add the crate
Basic usage
Annotate your tests with #[allure_test] and optional helper functions with #[step].
During execution, results are written to target/allure-results by default.
use ;
Configure the output directory
Override the default results directory with ALLURE_RESULTS_DIR:
ALLURE_RESULTS_DIR=./allure-results
Generate an Allure report
After the test run, generate and open a report with the Allure CLI:
What this crate provides
CargoTestReporterfor manual integration when macros are not enough.- Re-exported
#[allure_test]and#[step]macros. - Re-exported
StatusandStatusDetailstypes. - Automatic lifecycle setup for
cargo test.