test-toolbox
Utility library of helper macros for working with unit tests.
Macros
actual!
- declare actual variable with differingdebug
andrelease
syntaxexpect!
- declare expected variable with differingdebug
andrelease
valuescapture!
- capturesstdout
andstderr
for testing output
Resources
- Docs for more detailed information
Usage
Each macro is gated by a feature.
No feature is mutually exclusive and can be combined as needed.
[]
= { = "0.2", = ["actual", "capture", "expect"] }
Implemented
-
actual!
macro -
expect
macro -
capture!
macro