-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[serial] macro for modules #103
Comments
TBH, mostly because no-one asked for this before! This looks certainly doable. It'd basically apply the same set of options ( |
I got ill on the weekends, does it still need testing? |
The 3.0.0 release has gone out with this in, if you can test that against your use case? |
@palfrey: the mod level #[cfg(test)]
#[serial_test::serial]
mod tests {
#[tokio::test]
async fn foo() {
println!("foo test");
}
#[tokio::test]
async fn bar() {
println!("bar test");
}
} |
No, you're not. I made some assumptions about test ident names that weren't actually tested, and only regular tests get matched, not |
Thanks @palfrey for all the effort, it is much appreciated.
with the following code: #[cfg(test)]
#[serial_test::serial]
mod tests {
#[tokio::test]
#[ignore = "blabla"]
async fn foo() -> Result<(), ()> {
Ok(())
}
#[tokio::test]
async fn bar() -> Result<(), ()> {
Ok(())
}
} |
#111 - I'd fixed |
@palfrey : it works for me, thank you ! |
It's kind of tedious to mark each test function with a macros. Is there a way to make all of the functions inside
mod tests { ... }
serial?The text was updated successfully, but these errors were encountered: