Update test result processing to use NUnitXml format and enhance logging for better clarity#25288
Merged
TravisEz13 merged 3 commits intomasterfrom Apr 7, 2025
Merged
Conversation
…ing for better clarity
…tHub Actions compatibility
TravisEz13
commented
Apr 7, 2025
TravisEz13
commented
Apr 7, 2025
adityapatwardhan
approved these changes
Apr 7, 2025
Member
Author
|
/azp run PowerShell-CI-linux-packaging, PowerShell-Windows-Packaging-CI |
|
Azure Pipelines successfully started running 2 pipeline(s). |
pwshBot
pushed a commit
to pwshBot/PowerShell
that referenced
this pull request
Apr 11, 2025
…ing for better clarity (PowerShell#25288)
9 tasks
Member
Author
|
@PowerShell/powershell-maintainers triage decision - required infrastructure change |
pwshBot
pushed a commit
to pwshBot/PowerShell
that referenced
this pull request
Apr 28, 2025
…ing for better clarity (PowerShell#25288)
9 tasks
Sysoiev-Yurii
pushed a commit
to Sysoiev-Yurii/PowerShell
that referenced
this pull request
May 12, 2025
…ing for better clarity (PowerShell#25288)
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
…ing for better clarity (PowerShell#25288)
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.
PR Summary
This pull request includes several changes to improve the logging and error reporting in the test workflows, as well as to update the test result formats. The most important changes include updating the test result format from JUnitXml to NUnitXml, refactoring the process to summarize Pester test results, and enhancing the logging in various scripts.
Test result format updates:
.github/actions/test/nix/action.ymland.github/actions/test/windows/action.yml. [1] [2]Refactoring Pester test results processing:
process-pester-results.ps1in.github/actions/test/process-pester-results/action.yml.process-pester-results.ps1to handle the summarization of Pester test results, including more detailed metrics.Enhancing logging:
Write-LogGroupStartandWrite-LogGroupEndcalls to group log messages inbuild.psm1and.github/actions/test/windows/action.yml. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]Formatting improvements:
Show-PSPesterErrorandTest-XUnitTestResultsfunctions inbuild.psm1for better readability. [1] [2]PR Context
JUnit Test results would often fail to serialize at all or properly. Switching back to NUnit because the format was reliable.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header