allure-rust-commons
allure-rust-commons provides the core runtime, lifecycle, model, writer, and facade APIs
used to produce Allure-compatible result files.
Use this crate when you want to build your own adapter for a custom test runner or framework.
Add the crate
Basic usage
Create a results writer, initialize a runtime, then start and stop a test through the lifecycle or the facade API.
use ;
Common building blocks
AllureRuntime: owns the configured results writer.AllureLifecycle: manages in-progress tests and steps.AllureFacade: ergonomic helper for labels, links, parameters, steps, and attachments.FileSystemResultsWriter: persists JSON result files and attachments.model: raw Allure data structures for custom integrations.
Output location
The writer creates the target directory if it does not already exist:
let writer = new?;