1 unstable release
0.1.0 | Nov 21, 2022 |
---|
#48 in #extend
3KB
complex_test_helper
Extending Rust's testing capabilities by providing several macros for testing complex workflows.
Installation
Add this to your Cargo.toml:
[dev-dependencies]
complex_test_helper = "0.1.0"
Example
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
Dependencies
~1.5MB
~37K SLoC