Module runtime

Module runtime 

Source
Expand description

Runtime context management for tracking test execution state.

This module provides thread-local storage for synchronous tests and optional tokio task-local storage for async tests.

Structs§

AllureConfig
Configuration for the Allure runtime.
AllureConfigBuilder
Builder for configuring the Allure runtime.
TestContext
Test context holding the current test result and step stack.

Functions§

allure_id
Adds an Allure ID label to the current test.
attach_binary
Attaches binary content to the current test or step.
attach_file
Attaches a file from the filesystem to the current test or step.
attach_json
Attaches JSON content to the current test or step.
attach_text
Attaches text content to the current test or step.
configure
Configures the Allure runtime.
description
Sets the test description (markdown).
description_html
Sets the test description (HTML).
display_name
Sets the display name for the current test.
epic
Adds an epic label to the current test.
feature
Adds a feature label to the current test.
flaky
Marks the current test as flaky.
get_config
Gets the current configuration or the default.
issue
Adds an issue link to the current test.
known_issue
Marks the current test as having a known issue.
label
Adds a label to the current test.
link
Adds a generic link to the current test.
log_step
Logs a step without a body (for simple logging).
muted
Marks the current test as muted.
owner
Adds an owner label to the current test.
parameter
Adds a parameter to the current test or step.
parent_suite
Adds a parent suite label to the current test.
run_test
Runs a test function with Allure tracking.
set_context
Sets the current test context for the thread.
severity
Adds a severity label to the current test.
step
Executes a step with the given name and body.
story
Adds a story label to the current test.
sub_suite
Adds a sub-suite label to the current test.
suite
Adds a suite label to the current test.
tag
Adds a tag label to the current test.
tags
Adds multiple tag labels to the current test.
take_context
Takes the current test context, leaving None in its place.
test_case_id
Sets the test case ID for the current test.
title
Sets a custom title for the current test.
tms
Adds a TMS link to the current test.
with_context
Executes a function with the current test context.