- Convert exec.Command() tests to in-process rootCmd.Execute() - Achieve ~10x speedup (3.8s vs 40s for 17 tests) - Add mutex serialization for thread safety - Implement manual temp dir cleanup with retries - Reset global state between tests to prevent contamination - Keep TestCLI_EndToEnd for binary validation