diff --git a/Build/build.ps1 b/Build/build.ps1 index 3384da09..02676982 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -224,8 +224,7 @@ function NetCliTests($build) Write-Host "Project path: $projectPath" Write-Host - exec { dotnet test $projectPath -f $testDir -c Release -l trx --no-restore --no-build | Out-Default } - copy-item -Path "$location\TestResults\*.trx" -Destination $workingDir + exec { dotnet test $projectPath -f $testDir -c Release -l trx -r $workingDir --no-restore --no-build | Out-Default } } finally { @@ -244,7 +243,7 @@ function NUnitTests($build) try { Set-Location $testRunDir - exec { & $nunitConsolePath\tools\nunit3-console.exe "$testRunDir\Newtonsoft.Json.Tests.dll" --framework=$framework --result=$workingDir\$testDir.xml | Out-Default } "Error running $testDir tests" + exec { & $nunitConsolePath\tools\nunit3-console.exe "$testRunDir\Newtonsoft.Json.Tests.dll" --framework=$framework --result=$workingDir\$testDir.xml --out=$workingDir\$testDir.txt | Out-Default } "Error running $testDir tests" } finally {