A module that provides several test related goodies to the other Avro crates:
The logger both collects the logged messages and delegates to env_logger so that they printed on the stderr
Uses color-backtrace
to make the backtraces easier to read.
The module is automatically setup for all unit tests when this crate is listed as a [dev-dependency]
in Cargo.toml.
Since integration tests are actually crates without Cargo.toml, the test author needs to call test_logger::init()
in the beginning of a test.
To assert that a given message was logged, use the assert_logged
function.
assert_logged("An expected message");