#requires -Version 7.0
param([ValidateSet('Debug','Release')][string]$Configuration = 'Release')
$ErrorActionPreference = 'Stop'
$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
Push-Location $taskRoot
try {
dotnet test Server/Tests/XFEWarframe.Tests/XFEWarframe.Tests.csproj -c $Configuration --nologo -v quiet --logger 'trx;LogFileName=core-tests.trx' --results-directory artifacts/test-results
if ($LASTEXITCODE -ne 0) { throw 'Core tests failed' }
dotnet test Client/Tests/XFEWarframe.Client.Tests/XFEWarframe.Client.Tests.csproj -c $Configuration --nologo -v quiet --logger 'trx;LogFileName=client-tests.trx' --results-directory artifacts/test-results
if ($LASTEXITCODE -ne 0) { throw 'Client installer tests failed' }
} finally { Pop-Location }
#requires -Version 7.0
param([ValidateSet('Debug','Release')][string]$Configuration = 'Release')
$ErrorActionPreference = 'Stop'
$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
Push-Location $taskRoot
try {
dotnet test Server/Tests/XFEWarframe.Tests/XFEWarframe.Tests.csproj -c $Configuration --nologo -v quiet --logger 'trx;LogFileName=core-tests.trx' --results-directory artifacts/test-results
if ($LASTEXITCODE -ne 0) { throw 'Core tests failed' }
dotnet test Client/Tests/XFEWarframe.Client.Tests/XFEWarframe.Client.Tests.csproj -c $Configuration --nologo -v quiet --logger 'trx;LogFileName=client-tests.trx' --results-directory artifacts/test-results
if ($LASTEXITCODE -ne 0) { throw 'Client installer tests failed' }
} finally { Pop-Location }