Crate libtest2_mimic

Crate libtest2_mimic 

Source
Expand description

An experimental replacement for libtest-mimic

§Usage

To use this, you most likely want to add a manual [[test]] section to Cargo.toml and set harness = false. For example:

[[test]]
name = "mytest"
path = "tests/mytest.rs"
harness = false

And in tests/mytest.rs you would call Harness::main in the main function:

libtest2_mimic::Harness::with_env()
    .main();

Structs§

Harness
RunContext
RunError
Trial

Type Aliases§

RunResult