Skip to content

Commit a3128fc

Browse files
Copilotabonie
andcommitted
Restore xunit test logger with LogFilePath in Build.ps1
Co-authored-by: abonie <[email protected]>
1 parent 54a7b8a commit a3128fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ function TestUsingMSBuild([string] $testProject, [string] $targetFramework, [str
376376
$testLogPath = "$ArtifactsDir\TestResults\$configuration\{assembly}_{framework}$testBatchSuffix.xml"
377377

378378
$testBinLogPath = "$LogDir\${projectName}_$targetFramework$testBatch.binlog"
379-
$args = "test $testProject -c $configuration -f $targetFramework --logger ""console;verbosity=normal"" /bl:$testBinLogPath"
379+
$args = "test $testProject -c $configuration -f $targetFramework --logger ""xunit;LogFilePath=$testLogPath"" --logger ""console;verbosity=normal"" /bl:$testBinLogPath"
380380
$args += " --blame-hang-timeout 5minutes --results-directory $ArtifactsDir\TestResults\$configuration"
381381

382382
if (-not $noVisualStudio -or $norestore) {

0 commit comments

Comments
 (0)