-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Thank you for your crate! :)
Would you consider supporting customizable test attributes? For example, I believe that currently tests are hard-coded to look like:
#[test]
fn my_test() {
...
}But I would like to specify custom test attributes. Here is an example:
#[test]
#[ignore]
#[cfg(target_os = "linux")]
fn my_test() {
...
}I think your code gets us pretty close, we just need a way to parse the attributes and paste them here instead of the hard-coded #[cfg(test)], right?
Lines 258 to 266 in 622d703
| if let Some(module) = parsed.module { | |
| tokens = quote! { | |
| #[cfg(test)] | |
| mod #module { | |
| use super::*; | |
| #tokens | |
| } | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels