test-toolbox

Crates.iotest-toolbox
lib.rstest-toolbox
version0.5.0
sourcesrc
created_at2021-08-21 16:51:31.094457
updated_at2021-11-03 20:04:29.949458
descriptionThis library provides useful macros for unit testing
homepagehttps://github.com/Nejat/test-toolbox-rs
repositoryhttps://github.com/Nejat/test-toolbox-rs
max_upload_size
id440375
size22,747
Nejat (Nejat)

documentation

README

test-toolbox

Utility library of helper macros for working with unit tests.

Macros

  • actual! - declare actual variable with differing debug and release syntax
  • expect! - declare expected variable with differing debug and release values
  • capture! - captures stdout and stderr 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.

  • 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"] }

Implemented

  • actual! macro
  • expect macro
  • capture! macro
Commit count: 23

cargo fmt