1 unstable release
Uses old Rust 2015
0.1.0 | Mar 29, 2018 |
---|
#32 in #data-driven
436 downloads per month
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