attach_text

Function attach_text 

Source
pub fn attach_text(name: impl Into<String>, content: impl AsRef<str>)
Expand description

Attaches text content to the current test or step.

ยงExample

use allure_core::runtime::{with_test_context, attach_text};

with_test_context(|| {
    attach_text("API Response", r#"{"status": "ok"}"#);
    attach_text("Log Output", "Test completed successfully");
});