Repository navigation
Add precondition and expected result support - #62
Merged
Merged
Conversation
andrcuns
marked this pull request as ready for review
October 30, 2026 09:05
Allure Report Summary
Reports: Awesome Allure TestOps: Allure Rust GitHub actions run (2026-11-02T17:13:10.364Z) Artifacts used (6)
|
baev
approved these changes
Nov 2, 2026
baev
force-pushed
the
feat-preconditions-support
branch
from
November 2, 2026 17:06
0c1dca0 to
de96e01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Add preconditions and expected results to Rust test results, matching the support added in allure-ruby. Test authors can document what must be true before a test runs and what outcome it is intended to produce, separately from the test description.
Both fields support independent Markdown and HTML values:
preconditionandpreconditionHtmlexpectedResultandexpectedResultHtmlSet them before execution using
TestOptionsbuilders:Or update them while a test is running using the thread-bound runtime helpers:
HTML variants are available through
with_precondition_html/with_expected_result_htmlbuilders andprecondition_html/expected_result_htmlruntime helpers. Adapters can also set the fields throughAllureFacademethods or low-level lifecycle parameters.These values are report metadata only: they do not perform setup or assert the test outcome.
Checklist