Fix #2515, #2538, #2678: Hidden folder discovery, error reporting, CimInstance#2687
Closed
nohwnd wants to merge 1 commit intopester:mainfrom
Closed
Fix #2515, #2538, #2678: Hidden folder discovery, error reporting, CimInstance#2687nohwnd wants to merge 1 commit intopester:mainfrom
nohwnd wants to merge 1 commit intopester:mainfrom
Conversation
…rror reporting, CimInstance pester#2515: Include hidden (dot-prefixed) folders in test discovery on Linux by adding -Force to Get-ChildItem calls in Find-File. pester#2538: Container/block with discovery errors now reported as Failed instead of incorrectly showing as Passed. pester#2678: Suppress Get-CimInstance access denied error when Pester runs without Administrator rights by adding -ErrorAction Ignore. Copilot-generated fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
split this per issue fix into multiple PRs, not sure what you are doing. |
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pester 6 Fixes (Copilot-generated)
Fix #2515: Hidden folders included in test discovery
Added
-ForcetoGet-ChildItemcalls inFind-Fileso hidden (dot-prefixed) folders like.githubare included on Linux.Fix #2538: Discovery errors reported as Failed
Container/block with discovery errors now correctly reported as Failed instead of Passed. Reordered result-computation logic so non-empty ErrorRecord always yields Failed.
Fix #2678: Suppress Get-CimInstance access denied
Added
-ErrorAction IgnoretoGet-CimInstanceandGet-WmiObjectcalls inGet-RunTimeEnvironmentwith null fallback for OS info when not running as Administrator.All 2154 tests pass locally.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com