Files
athens/scripts/ps/test_unit.ps1
marpio fa16c6950b Powershell scripts (#525)
* port scripts to ps

* remove ps core features

* init script

* make it work on ps 5.0

* sync with make file

* cleanup

* cleanup

* review feedback

* newline
2018-08-24 19:44:36 +02:00

16 lines
435 B
PowerShell
Executable File

# Run the unit tests with the race detector and code coverage enabled
$envPath = Join-Path "cmd" "proxy" | Join-Path -ChildPath ".env"
Get-Content $envPath | ForEach-Object {
$line = $_.ToString().Split("=")
if ($line.Length -ne 2) {
return
}
$name = $line[0]
$val = $line[1]
[System.Environment]::SetEnvironmentVariable($name, $val)
}
& go test -race -coverprofile cover.out -covermode atomic ./...