complex_test_helper

Crates.iocomplex_test_helper
lib.rscomplex_test_helper
version0.1.0
sourcesrc
created_at2022-11-21 21:43:15.193918
updated_at2022-11-21 21:43:15.193918
descriptionExtends Rust's testing capabilities by providing several macros for testing complex workflows.
homepage
repository
max_upload_size
id720462
size4,418
Leonardo Poletti Atalla (leoata)

documentation

README

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
Commit count: 0

cargo fmt