3 releases

0.1.2 May 15, 2020
0.1.1 May 15, 2020
0.1.0 May 15, 2020

#7 in #parametrized

27 downloads per month
Used in 2 crates

MIT license

11KB
129 lines

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.

Dependencies

~1.5MB
~34K SLoC