[go: up one dir, main page]

rstest 0.3.0

A simple `pytest` clone for Rust. 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
17
use rstest::*;

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

#[rstest]
fn error_inner(fixture: u32) {
    let a: u32 = "";
}

#[rstest]
fn error_cannot_resolve_fixture(no_fixture: u32) {
}

#[rstest]
fn error_fixture_wrong_type(fixture: String) {
}