#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

#32 in #data-driven

Download history 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 125/week @ 2024-09-09 110/week @ 2024-09-16 117/week @ 2024-09-23 111/week @ 2024-09-30 113/week @ 2024-10-07 103/week @ 2024-10-14 81/week @ 2024-10-21 105/week @ 2024-10-28 133/week @ 2024-11-04

436 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

~230KB