dust

Crates.iodust
lib.rsdust
version0.1.0
sourcesrc
created_at2018-03-29 21:37:53.77445
updated_at2018-03-29 21:37:53.77445
descriptionDust allows to build easy data driven tests in Rust
homepage
repositoryhttps://github.com/farodin91/dust
max_upload_size
id58129
size6,876
Jan Jansen (farodin91)

documentation

README

Dust - data driven tests in Rust

For example:

#![feature(plugin, decl_macro)]
#![plugin(dust)]

#[theory]
#[data(1,1)]
#[data(2,2)]
#[data(3,3)]
#[data(4,4)]
fn test_integer(a: i32, b: i32) {
    assert!(a==b);
}

#[theory]
#[data("test", "test")]
#[data("test2", "test2")]
fn test_str(a: &str, b: &str) {
    assert!(a==b);
}


#[test]
fn bla() {
    assert!(1==1);
}
Commit count: 2

cargo fmt