Utility library of helper macros for working with unit tests.
actual!
- declare actual variable with differing debug
and release
syntaxexpect!
- declare expected variable with differing debug
and release
valuescapture!
- captures stdout
and stderr
for testing outputEach macro is gated by a feature.
No feature is mutually exclusive and can be combined as needed.
toml
[dependencies]
test-toolbox = { version = "0.1", features = ["actual", "capture", "expect"] }
actual!
macroexpect
macrocapture!
macro