Summary
Scoop's current test harness is not clean under Pester 6 when no bucket manifests changed.
Our bucket CI reproduces this in both Windows matrix jobs:
The job currently reports Container failed: 1 during discovery but can still appear green because the wrapper only checked FailedCount.
Cause
test/Import-Bucket-Tests.ps1 builds $manifestFiles from changed JSON files and then passes the result to:
It '<_>' -TestCases $manifestFiles {
When a commit changes only CI or other non-manifest files, $manifestFiles is empty. Pester 6 now fails discovery for an empty -TestCases collection:
Value can not be null or empty array
Proposed fix
Because an empty manifest set is valid for this changed-file test, allow it explicitly:
It '<_>' -TestCases $manifestFiles -AllowNullOrEmptyForEach {
LLM Disclosure
GPT-5.6-Luna was used for this analysis
Summary
Scoop's current test harness is not clean under Pester 6 when no bucket manifests changed.
Our bucket CI reproduces this in both Windows matrix jobs:
The job currently reports
Container failed: 1during discovery but can still appear green because the wrapper only checkedFailedCount.Cause
test/Import-Bucket-Tests.ps1builds$manifestFilesfrom changed JSON files and then passes the result to:When a commit changes only CI or other non-manifest files,
$manifestFilesis empty. Pester 6 now fails discovery for an empty-TestCasescollection:Proposed fix
Because an empty manifest set is valid for this changed-file test, allow it explicitly:
LLM Disclosure
GPT-5.6-Luna was used for this analysis