| Crates.io | test-toolbox |
| lib.rs | test-toolbox |
| version | 0.5.0 |
| created_at | 2021-08-21 16:51:31.094457+00 |
| updated_at | 2021-11-03 20:04:29.949458+00 |
| description | This library provides useful macros for unit testing |
| homepage | https://github.com/Nejat/test-toolbox-rs |
| repository | https://github.com/Nejat/test-toolbox-rs |
| max_upload_size | |
| id | 440375 |
| size | 22,747 |
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.
actual! macro[dependencies]
test-toolbox = { version = "0.5", features = ["actual"] }
capture! macro[dependencies]
test-toolbox = { version = "0.5", features = ["capture"] }
expect! macro[dependencies]
test-toolbox = { version = "0.5", features = ["expect"] }
actual! macroexpect macrocapture! macro