Evan's Blog
EvanZhu0721 / 公开仓库

SBMS

镜像已同步

SBMS complete the calculation rules for the default logical desktop topology relationship and the physical dimensions of the displays in the Windows multi-screen collaboration system.

上游 GitHub
READ-ONLY MIRROR

README、源码与 Release 已保存到本站;源码视图固定到 commit bd87fa1e。

main/ root / .github/scripts
bd87fa1e· 固定源码快照
.github/scripts/invoke-pester.ps1993 B
1$ErrorActionPreference = 'Stop'
2Set-StrictMode -Version Latest
3
4Import-Module Pester -RequiredVersion 4.10.1 -Force
5
6$repository = [IO.Path]::GetFullPath(
7 (Join-Path $PSScriptRoot '..\..')
8)
9$testRoots = @(
10 (Join-Path $repository 'tests')
11 (Join-Path $repository 'installer\tests')
12)
13$paths = @(
14 $testRoots |
15 Where-Object { Test-Path -LiteralPath $_ -PathType Container } |
16 ForEach-Object {
17 Get-ChildItem -LiteralPath $_ -Filter '*.Tests.ps1' -File -Recurse
18 } |
19 Sort-Object FullName |
20 ForEach-Object { $_.FullName }
21)
22if ($paths.Count -eq 0) {
23 throw 'No Pester test files were discovered.'
24}
25
26Write-Host "pester_engine=$($PSVersionTable.PSVersion)"
27Write-Host "pester_files=$($paths.Count)"
28$result = Invoke-Pester -Script $paths -PassThru
29if ($result.FailedCount -ne 0) {
30 throw "$($result.FailedCount) Pester test(s) failed."
31}
32
33# Tests may leave a native exit code that the CI PowerShell wrapper would reuse.
34exit 0
35