From 3a3e360da75a31e23cc825cba88d47e7f37ae3f5 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 9 Sep 2017 23:36:56 +1200 Subject: [PATCH] -Build --- Build/build.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {