// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #if ZEN_WITH_TESTS # include # include # include # include # include # include namespace zen::tests { extern zen::ZenServerEnvironment TestEnv; // Path to the zen CLI executable, located alongside the running test binary. std::filesystem::path GetZenExecutablePath(); struct ZenCommandResult { int ExitCode = -1; std::string Output; // combined stdout + stderr }; // Spawn the zen CLI with the given argument string (without the executable name) // and capture combined stdout/stderr until exit. Blocks until the process exits. ZenCommandResult RunZen(std::string_view Args); } // namespace zen::tests #endif