rstest 0.4.1

Rust fixture based test framework. It use procedural macro to implement fixtures and table based tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rstest::*;

#[fixture]
pub fn fixture() -> u32 { 42 }

#[rstest]
#[should_panic]
fn should_success(fixture: u32) {
    assert_ne!(fixture, 42);
}

#[rstest]
#[should_panic]
fn should_fail(fixture: u32) {
    assert_eq!(fixture, 42);
}