allure-test-macros
allure-test-macros contains the procedural macros used by the workspace.
In most cases you should depend on allure-cargotest instead, because it re-exports these
macros together with the runtime integration.
Recommended usage
Add the higher-level crate:
Then use the re-exported macros:
use ;
What the macros do
#[allure_test]wraps a#[test]function with Allure lifecycle setup and teardown.#[step]records a function call as an Allure step.- Optional macro arguments let you override the displayed test or step name.
Notes
#[allure_test]currently supports synchronous test functions that return().- The macro uses
ALLURE_RESULTS_DIRwhen set, otherwisetarget/allure-results. - This crate is intended as an implementation crate for proc macros.