Browse Source

Handle benchmark path without ConfigurationManager

- Set ForceDriver directly when ConfigurationManager is not enabled
- Ensures benchmarks work correctly with --driver option

Co-authored-by: tig <[email protected]>
copilot-swe-agent[bot] 4 weeks ago
parent
commit
560f56bc77
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Examples/UICatalog/UICatalog.cs

+ 6 - 0
Examples/UICatalog/UICatalog.cs

@@ -468,6 +468,12 @@ public class UICatalog
             scenario.StartBenchmark ();
         }
 
+        // For benchmarking without ConfigurationManager, set ForceDriver directly
+        if (!ConfigurationManager.IsEnabled && !string.IsNullOrEmpty (_forceDriver))
+        {
+            Application.ForceDriver = _forceDriver;
+        }
+
         scenario.Main ();
 
         BenchmarkResults? results = null;