Constant antithesis_sdk::LOCAL_OUTPUT

source ·
pub const LOCAL_OUTPUT: &str = "ANTITHESIS_SDK_LOCAL_OUTPUT";
Expand description

A constant provided by the SDK to report the location of logged output when run locally. This constant is the name of an environment variable ANTITHESIS_SDK_LOCAL_OUTPUT. ANTITHESIS_SDK_LOCAL_OUTPUT is a path to a file that can be created and written to when running locally. If this environment variable is not present at runtime, then no assertion and lifecycle output will be attempted.

This allows you to make use of the Antithesis assertions module in your regular testing, or even in production. In particular, very few assertions frameworks offer a convenient way to define Sometimes assertions, but they can be quite useful even outside Antithesis.

See also the documentation for local execution.