| Crates.io | apache-avro-test-helper |
| lib.rs | apache-avro-test-helper |
| version | 0.20.0 |
| created_at | 2022-08-03 18:48:32.849455+00 |
| updated_at | 2025-08-25 06:17:55.166168+00 |
| description | Apache Avro tests helper. |
| homepage | |
| repository | https://github.com/apache/avro-rs |
| max_upload_size | |
| id | 638265 |
| size | 47,712 |
A module that provides several test related goodies to the other Avro crates:
The logger:
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.
apache_avro_test_helper::logger::assert_logged("An expected message");