diff --git a/TUnit.Engine/Reporters/JUnitReporter.cs b/TUnit.Engine/Reporters/JUnitReporter.cs index 2a34661558..f80c52d5c9 100644 --- a/TUnit.Engine/Reporters/JUnitReporter.cs +++ b/TUnit.Engine/Reporters/JUnitReporter.cs @@ -32,9 +32,12 @@ public async Task IsEnabledAsync() return false; } - // Determine output path - _outputPath = Environment.GetEnvironmentVariable("JUNIT_XML_OUTPUT_PATH") - ?? GetDefaultOutputPath(); + // Determine output path (only if not already set via command-line argument) + if (string.IsNullOrEmpty(_outputPath)) + { + _outputPath = Environment.GetEnvironmentVariable("JUNIT_XML_OUTPUT_PATH") + ?? GetDefaultOutputPath(); + } _isEnabled = true; return await extension.IsEnabledAsync(); diff --git a/global.json b/global.json index 2139291fc8..67b0c9d008 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.101", + "version": "10.0.100", "rollForward": "latestMajor", "allowPrerelease": true },