File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,11 @@ You can then either add `#[serial]` or `#[serial(some_text)]` to tests as requir
56
56
57
57
For each test, a timeout can be specified with the ` timeout_ms ` parameter to the [ serial] ( macro@serial ) attribute. Note that
58
58
the timeout is counted from the first invocation of the test, not from the time the previous test was completed. This can
59
- lead to some unpredictable behavior based on the number of parallel tests run on the system.
59
+ lead to [ some unpredictable behavior] ( https://github.com/palfrey/serial_test/issues/76 ) based on the number of parallel tests run on the system.
60
60
``` rust
61
61
#[test]
62
62
#[serial(timeout_ms = 1000)]
63
63
fn test_serial_one () {
64
64
// Do things
65
65
}
66
- #[test]
67
- #[serial(test_name, timeout_ms = 1000)]
68
- fn test_serial_another () {
69
- // Do things
70
- }
71
66
```
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ default = ["logging", "async"]
32
32
# # Switches on debug logging (and requires the `log` package)
33
33
logging = [" log" ]
34
34
35
- # # Enables async features
35
+ # # Enables async features (and requires the `futures` package)
36
36
async = [" futures" ]
37
37
38
- # # The file_locks feature unlocks the `file_serial`/`file_parallel` macros
38
+ # # The file_locks feature unlocks the `file_serial`/`file_parallel` macros (and requires the `fslock` package)
39
39
file_locks = [" fslock" ]
40
40
41
41
docsrs = [" document-features" ]
Original file line number Diff line number Diff line change 45
45
//! // Do things
46
46
//! }
47
47
//! ````
48
+ //!
49
+ //!
50
+ //! For each test, a timeout can be specified with the `timeout_ms` parameter to the [serial](macro@serial) attribute. Note that
51
+ //! the timeout is counted from the first invocation of the test, not from the time the previous test was completed. This can
52
+ //! lead to [some unpredictable behavior](https://github.com/palfrey/serial_test/issues/76) based on the number of parallel tests run on the system.
53
+ //! ```rust
54
+ //! #[test]
55
+ //! #[serial(timeout_ms = 1000)]
56
+ //! fn test_serial_one() {
57
+ //! // Do things
58
+ //! }
59
+ //! ```
48
60
//!
49
61
//! ## Feature flags
50
62
# attribute. Note that
66
66
/// the timeout is counted from the first invocation of the test, not from the time the previous test was completed. This can
67
- /// lead to some unpredictable behavior based on the number of parallel tests run on the system.
67
+ /// lead to [ some unpredictable behavior](https://github.com/palfrey/serial_test/issues/76) based on the number of parallel tests run on the system.
68
68
///
69
69
/// ````
70
70
/// #[test]
71
71
/// #[serial(timeout_ms = 1000)]
72
72
/// fn test_serial_one() {
73
73
/// // Do things
74
74
/// }
75
- ///
76
- /// #[test]
77
- /// #[serial(timeout_ms = 1000)]
78
- /// fn test_serial_another() {
79
- /// // Do things
80
- /// }
81
75
/// ````
82
76
///
83
77
/// Nested serialised tests (i.e. a [serial](macro@serial) tagged test calling another) are supported
You can’t perform that action at this time.
0 commit comments