Skip to content

Additional Attributes & Async

luke.biel edited this page Feb 13, 2022 · 1 revision

Test case allows using additional attributes (eg. when user wants to use tokio::test). In order for mentioned attributes to function correctly, they have to appear after first occurance of test_case attribute. Eg.:

#[test_case(...)]
#[tokio::test]
#[allow(clippy::non_camel_case_types)]
async fn xyz() { }
Clone this wiki locally