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§
- EnvVar
Guard - Environment variable guard that restores the original value when dropped
- Test
Environment - 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