Expand description
Tagging functionality for tests, allowing for convenient grouping and later execution of certain groups.
For example, a test can be associated with the tag miri, to
indicate that it is suitable for being run under
Miri:
#[test_tag::tag(miri)]
#[test]
fn test1() {
assert_eq!(2 + 2, 4);
}Subsequently, it is possible to run only those tests under Miri:
$ cargo miri test -- :miri:
This crate provides the #[test_tag::tag] attribute that allows for such tagging to happen.
Attribute Macros§
- A procedural macro for the
tagattribute.