$ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $true Set-Location (Split-Path -Parent $PSScriptRoot) if (-not (Get-Command go -ErrorAction SilentlyContinue)) { $cachedGo = Join-Path $env:LOCALAPPDATA 'ITWorx-Pulse\toolchains\go1.26.6\bin' if (-not (Test-Path (Join-Path $cachedGo 'go.exe'))) { throw 'Go 1.26.6 is not available on PATH or in the recorded local toolchain cache.' } $env:PATH = $cachedGo + ';' + $env:PATH } python -m unittest discover -s tools/tests -p 'test_*.py' -v go test ./... pnpm test python tools/validate_contracts.py