generate_test_macro 0.1.2

A proc macro for writing test suites as methods on a struct, generating a macro_rules! macro to instantiate each test individually.
Documentation
1
2
3
4
5
6
7
8
9
10
// Compile-fail tests for generate_test_macro error diagnostics.
//
// Each file in tests/ui/ must have a corresponding .stderr snapshot.
// Run `TRYBUILD=overwrite cargo test` to (re)generate them.

#[test]
fn compile_fail_tests() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/*.rs");
}