#data-driven #testing #build

nightly dust

Dust allows to build easy data driven tests in Rust

1 unstable release

Uses old Rust 2015

0.1.0 Mar 29, 2018

#26 in #data-driven

Download history 136/week @ 2024-05-20 114/week @ 2024-05-27 138/week @ 2024-06-03 114/week @ 2024-06-10 114/week @ 2024-06-17 107/week @ 2024-06-24 102/week @ 2024-07-01 124/week @ 2024-07-08 115/week @ 2024-07-15 116/week @ 2024-07-22 130/week @ 2024-07-29 107/week @ 2024-08-05 111/week @ 2024-08-12 118/week @ 2024-08-19 126/week @ 2024-08-26 111/week @ 2024-09-02

478 downloads per month

MIT license

6KB
120 lines

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);
}

Dependencies

~225KB