test-toolbox
Utility library of helper macros for working with unit tests.
Macros
actual!- declare actual variable with differingdebugandreleasesyntaxexpect!- declare expected variable with differingdebugandreleasevaluescapture!- capturesstdoutandstderrfor 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.
actual!macro
[]
= { = "0.5", = ["actual"] }
capture!macro
[]
= { = "0.5", = ["capture"] }
expect!macro
[]
= { = "0.5", = ["expect"] }
Implemented
-
actual!macro -
expectmacro -
capture!macro