mirror of
https://github.com/gomods/athens
synced 2026-02-12 13:18:10 +00:00
* 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
16 lines
435 B
PowerShell
Executable File
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 ./...
|