You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`serial_test` allows for the creation of serialised Rust tests using the `serial` attribute
10
10
e.g.
@@ -20,11 +20,17 @@ fn test_serial_one() {
20
20
fntest_serial_another() {
21
21
// Do things
22
22
}
23
+
24
+
#[test]
25
+
#[serial]
26
+
asyncfntest_serial_another() {
27
+
// Do things asynchronously
28
+
}
23
29
```
24
30
Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however.
25
31
26
32
## Usage
27
-
We require at least Rust 1.36 for [attribute-like procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) support (and [parking_lot using smallvec 1.0](https://github.com/Amanieu/parking_lot/pull/188))
33
+
We require at least Rust 1.39 for [async/await](https://blog.rust-lang.org/2019/11/07/Async-await-stable.html) support
0 commit comments