-Build
This commit is contained in:
+2
-3
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user