devbox-test-args

Crates.iodevbox-test-args
lib.rsdevbox-test-args
version0.1.2
sourcesrc
created_at2020-05-15 19:30:00.541845
updated_at2020-05-15 19:52:47.499355
descriptionParametrized tests macro
homepage
repositoryhttps://github.com/peterkozelj/devbox
max_upload_size
id242132
size12,552
Peter Koželj (peterkozelj)

documentation

README

Crates.io MIT licensed

devbox-test-args

Adds parametrization capabilty to #[test] via #[args] attribute macro.

To install via umbrella devbox crate

[dev-dependencies]
devbox = { version = "0.1" }

Simplest example

#[args(
    char_a: 'a';
    char_b: 'b' ! "wrong char";
)]
#[test]
fn parametrized_test_for(character:_) {
    assert_eq!('a', character, "wrong char");
}

Check #[args] attribute for full example and usage specification.

License

Licensed under MIT license (LICENSE or https://opensource.org/licenses/MIT)

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Devbox by you, shall be licensed as MIT, without any additional terms or conditions.

Commit count: 27

cargo fmt