Module test_utils

Module test_utils 

Source
Expand description

Test utilities for Foundry CLI integration tests

This module provides the TestEnvironment struct and helper functions that can be used by the test crate.

Structs§

EnvVarGuard
Environment variable guard that restores the original value when dropped
TestEnvironment
Test environment that sets up a temporary foundry directory with proper isolation Uses thread-safe environment variable manipulation following CLI testing best practices

Functions§

env_var_guard
Helper function to temporarily set an environment variable with automatic cleanup