-Build
This commit is contained in:
+2
-3
@@ -224,8 +224,7 @@ function NetCliTests($build)
|
|||||||
Write-Host "Project path: $projectPath"
|
Write-Host "Project path: $projectPath"
|
||||||
Write-Host
|
Write-Host
|
||||||
|
|
||||||
exec { dotnet test $projectPath -f $testDir -c Release -l trx --no-restore --no-build | Out-Default }
|
exec { dotnet test $projectPath -f $testDir -c Release -l trx -r $workingDir --no-restore --no-build | Out-Default }
|
||||||
copy-item -Path "$location\TestResults\*.trx" -Destination $workingDir
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -244,7 +243,7 @@ function NUnitTests($build)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Set-Location $testRunDir
|
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
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user