Hi! I'm using Trybuild to test some procedural macros in the AWS Lambda Runtime for Rust, and I'm really liking it!
I do have a question, though: there any way to disable TestCases::pass from running the code under test/providing a mechanism to only check for compiler errors?
At runtime, the macro I'm testing with Trybuild makes several assumptions about its environment that include a running server + several environment variables. This results in tests failing with a server connection error, rather than passing due to correct usage of the macro. More concretely, it'd be really handy for my use case if run_test would pass check rather than run to Cargo.
Thanks again for this crate! It's really nice to use, and the test reports are beautifully rendered.
Hi! I'm using Trybuild to test some procedural macros in the AWS Lambda Runtime for Rust, and I'm really liking it!
I do have a question, though: there any way to disable TestCases::pass from running the code under test/providing a mechanism to only check for compiler errors?
At runtime, the macro I'm testing with Trybuild makes several assumptions about its environment that include a running server + several environment variables. This results in tests failing with a server connection error, rather than passing due to correct usage of the macro. More concretely, it'd be really handy for my use case if
run_testwould passcheckrather thanrunto Cargo.Thanks again for this crate! It's really nice to use, and the test reports are beautifully rendered.