#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

#34 in #data-driven

Download history 109/week @ 2024-11-15 109/week @ 2024-11-22 102/week @ 2024-11-29 96/week @ 2024-12-06 89/week @ 2024-12-13 69/week @ 2024-12-20 57/week @ 2024-12-27 89/week @ 2025-01-03 94/week @ 2025-01-10 86/week @ 2025-01-17 80/week @ 2025-01-24 100/week @ 2025-01-31 101/week @ 2025-02-07 110/week @ 2025-02-14 126/week @ 2025-02-21 94/week @ 2025-02-28

444 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

~235KB