#data-driven #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

#60 in #data-driven

Download history 108/week @ 2023-11-16 122/week @ 2023-11-23 133/week @ 2023-11-30 109/week @ 2023-12-07 120/week @ 2023-12-14 104/week @ 2023-12-21 73/week @ 2023-12-28 135/week @ 2024-01-04 160/week @ 2024-01-11 121/week @ 2024-01-18 115/week @ 2024-01-25 135/week @ 2024-02-01 138/week @ 2024-02-08 131/week @ 2024-02-15 204/week @ 2024-02-22 178/week @ 2024-02-29

672 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

~220KB