subtest 1.0.3

macro to easily use test setup code from one test function in another one
Documentation
1
2
3
4
5
6
7
/// Test that all fixtures in the directory 'ui/fail' fail to expand with an expected error message.
/// Uses trybuild for error message snapshot management and assertions.
#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/fail/*.rs");
}