Skip to content

Commit b9dc12f

Browse files
Speed up Pester tests by using -NoStatus
Suppressing Status (e.g. using `-NoStatus`) reduces the overall runtime of the UT's across all 3 platforms (Windows, Linux, Mac) by 25-30 min. It also has the side-effect of improving the readability of the raw logs on CI for Linux and Mac. [Most recent run](https://dev.azure.com/ms/PowerShellForGitHub/_build/results?buildId=84315) without this change: 1h 19m [Run with this change](https://dev.azure.com/ms/PowerShellForGitHub/_build/results?buildId=84357) without this change: 54m Resolves #206
1 parent efdcbfa commit b9dc12f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Common.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function Initialize-CommonTestSetup
8989
Reset-GitHubConfiguration
9090
Set-GitHubConfiguration -DisableTelemetry # We don't want UT's to impact telemetry
9191
Set-GitHubConfiguration -LogRequestBody # Make it easier to debug UT failures
92+
Set-GitHubConfiguration -DefaultNoStatus # Status corrupts the raw CI logs for Linux and Mac, and makes runs take slightly longer.
9293
}
9394

9495
Initialize-CommonTestSetup

0 commit comments

Comments
 (0)