Skip to main content

spec

Attribute Macro spec 

Source
#[spec]
Expand description

Annotate a test with a spec acceptance criterion.

Format: #[spec("story_name::rule_name")]

This is a marker attribute — it does nothing at runtime. The codespec-rust plugin scans for these annotations to track which acceptance criteria have tests.