attach_file

Function attach_file 

Source
pub fn attach_file(
    name: impl Into<String>,
    path: impl AsRef<Path>,
    content_type: Option<ContentType>,
)
Expand description

Attaches a file from the filesystem to the current test or step.

The file is copied to the Allure results directory.