You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Could you move the main function out of the root module and provide an empty main instead? If not, I think you may be able to bypass main as the entry point by adding:
dtolnay
added
out of scope
Ideas to consider for someone building a more fully featured ui testing library
and removed
wontfix
This will not be worked on
labels
Mar 16, 2024
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 passcheck
rather thanrun
to Cargo.Thanks again for this crate! It's really nice to use, and the test reports are beautifully rendered.
The text was updated successfully, but these errors were encountered: