Crate tanu

Source

Re-exports§

pub use anyhow;
pub use eyre;
pub use pretty_assertions;

Modules§

assertion
tanu assertion macros.
http
runner

Macros§

assert
assert_eq
assert_ne
assert_str_eq

Structs§

App
tanu CLI.
Config
tanu’s configuration.
ListReporter
NullReporter
ProjectConfig
tanu’s project configuration.
Runner
TableReporter
TestInfo

Enums§

ReporterType

Traits§

Reporter
Reporter trait. The trait is based on the “template method” pattern. You can implement on_xxx methods to hook into the test runner. This way is enough for most usecases. If you need more control, you can override the “run” method.

Functions§

get_config
Get configuration for the current project. This function has to be called in the tokio task created by tanu runner. Otherwise, calling this function will panic.
get_tanu_config

Attribute Macros§

main
test
#[test] attribute registers the test function in tanu runner. Without this attribute, tanu can not discover test cases.