3 releases

0.1.2 May 15, 2020
0.1.1 May 15, 2020
0.1.0 May 15, 2020
Download history 10/week @ 2022-08-04 10/week @ 2022-08-11 4/week @ 2022-08-18 7/week @ 2022-08-25 8/week @ 2022-09-01 21/week @ 2022-09-08 4/week @ 2022-09-15 7/week @ 2022-09-22 13/week @ 2022-09-29 11/week @ 2022-10-06 3/week @ 2022-10-13 5/week @ 2022-10-20 11/week @ 2022-10-27 17/week @ 2022-11-03 12/week @ 2022-11-10 13/week @ 2022-11-17

55 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

~255–670KB
~15K SLoC