Skip to content

Provide mechanism to disable test execution #19

@davidbarsky

Description

@davidbarsky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    out of scopeIdeas to consider for someone building a more fully featured ui testing library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions