complex_test_helper 0.1.0

Extends Rust's testing capabilities by providing several macros for testing complex workflows.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 270 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • leoata

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