Expand description
An experimental replacement for libtest
§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 = falseAnd in tests/mytest.rs you would call libtest2_main, passing it each of your tests:
fn check_toph(_context: &TestContext) -> RunResult {
Ok(())
}
libtest2_main!(check_toph);Macros§
- libtest2_
main - Expands to the test harness