| Crates.io | devbox-test-args |
| lib.rs | devbox-test-args |
| version | 0.1.2 |
| created_at | 2020-05-15 19:30:00.541845+00 |
| updated_at | 2020-05-15 19:52:47.499355+00 |
| description | Parametrized tests macro |
| homepage | |
| repository | https://github.com/peterkozelj/devbox |
| max_upload_size | |
| id | 242132 |
| size | 12,552 |
Adds parametrization capabilty to #[test] via #[args] attribute macro.
[dev-dependencies]
devbox = { version = "0.1" }
#[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.
Licensed under MIT license (LICENSE or https://opensource.org/licenses/MIT)
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.