Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cli/azd/ci-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ param(
[switch] $ShortMode,
[string] $UnitTestCoverageDir = 'cover-unit',
[string] $IntegrationTestTimeout = '120m',
[string] $IntegrationTestCoverageDir = 'cover-int'
[string] $IntegrationTestCoverageDir = 'cover-int',
[string] $UnitTestTimingFile = 'test-timing-unit.json',
[string] $IntegrationTestTimingFile = 'test-timing-int.json'
)

$ErrorActionPreference = 'Stop'
Expand Down Expand Up @@ -37,7 +39,7 @@ Write-Host "Running unit tests..."
# See https://github.com/golang/go/issues/51430#issuecomment-1344711300
#
# As of Go 1.26, it’s still an “under-the-hood” option.
& $gotestsum -- ./... -short -v -cover -args --test.gocoverdir="$($unitCoverDir.FullName)"
& $gotestsum --jsonfile $UnitTestTimingFile -- ./... -short -v -cover -args --test.gocoverdir="$($unitCoverDir.FullName)"
if ($LASTEXITCODE) {
exit $LASTEXITCODE
}
Expand All @@ -60,7 +62,7 @@ $env:GOCOVERDIR = $intCoverDir.FullName
$env:GOEXPERIMENT=""

try {
& $gotestsum -- ./... -v -timeout $IntegrationTestTimeout
& $gotestsum --jsonfile $IntegrationTestTimingFile -- ./... -v -timeout $IntegrationTestTimeout
if ($LASTEXITCODE) {
exit $LASTEXITCODE
}
Expand Down
Loading
Loading