| Crates.io | complex_test_helper |
| lib.rs | complex_test_helper |
| version | 0.1.0 |
| created_at | 2022-11-21 21:43:15.193918+00 |
| updated_at | 2022-11-21 21:43:15.193918+00 |
| description | Extends Rust's testing capabilities by providing several macros for testing complex workflows. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 720462 |
| size | 4,418 |
Extending Rust's testing capabilities by providing several macros for testing complex workflows.
Add this to your Cargo.toml:
[dev-dependencies]
complex_test_helper = "0.1.0"
Hint: Run this yourself by running cargo test --example test
use complex_test_helper::complex_test;
fn setup() {
println!("Setup...");
}
fn teardown() {
println!("Teardown...");
}
#[test]
#[complex_test(setup, teardown)]
fn test_fn() {
println!("Content...");
}
Output:
running 1 test
Setup...
Content...
Teardown...
test tests::test_fn ... ok