| Crates.io | sequential-test |
| lib.rs | sequential-test |
| version | 0.2.4 |
| created_at | 2022-06-08 21:41:42.430355+00 |
| updated_at | 2022-09-11 20:18:53.192707+00 |
| description | Allows for the creation of sequential Rust tests. |
| homepage | |
| repository | https://github.com/JonathanWoollett-Light/sequential-test/ |
| max_upload_size | |
| id | 602268 |
| size | 5,808 |
Allows for the creation of sequential tests.
#[cfg(test)]
mod tests {
#[test]
#[sequential]
fn test1() {
// ...
}
#[test]
#[sequential]
fn test2() {
// ...
}
#[test]
#[parallel]
fn test3() {
// ...
}
}
sequential attribute are guaranteed to be executed sequentially.parallel attribute may run in parallel of each other but will not run
at the same time as tests with the sequential attribute.Defining sequential or parallel attributes on non-tests or within scopes is
considered UB.
This library is both faster1 and smaller than
serial_test however offers less functionality.
The current benchmark illustrate sequential-test covers the test set in an average
of ~350ms while serial_test covers the test set in
an average of ~550ms. ↩