log_step

Function log_step 

Source
pub fn log_step(name: impl Into<String>, status: Status)
Expand description

Logs a step without a body (for simple logging).

This is useful for logging actions that don’t have a body, such as noting an event or state.

§Example

use allure_core::runtime::{with_test_context, log_step};
use allure_core::Status;

with_test_context(|| {
    log_step("Database connection established", Status::Passed);
    log_step("Cache was cleared", Status::Passed);
});