27 lines
531 B
PowerShell
27 lines
531 B
PowerShell
[CmdletBinding()]
|
|
param(
|
|
[switch]$NoBuild
|
|
)
|
|
|
|
Set-StrictMode -Version Latest
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
$testProject = Join-Path $repoRoot "src/MxGateway.Tests/MxGateway.Tests.csproj"
|
|
$arguments = @(
|
|
"test",
|
|
$testProject,
|
|
"--filter",
|
|
"ClientBehaviorFixtureTests"
|
|
)
|
|
|
|
if ($NoBuild) {
|
|
$arguments += "--no-build"
|
|
}
|
|
|
|
& dotnet @arguments
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "Client behavior fixture validation failed with exit code $LASTEXITCODE."
|
|
}
|