Fix unit test result publishing in PR pipeline#5618
Merged
Conversation
Add TRX output and explicit PublishTestResults for coverage-based unit test runs so failed tests are surfaced reliably in Azure DevOps Tests tab. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5618 +/- ##
=======================================
Coverage 76.90% 76.90%
=======================================
Files 997 997
Lines 36616 36616
Branches 5529 5529
=======================================
Hits 28160 28160
+ Misses 7104 7102 -2
- Partials 1352 1354 +2 🚀 New features to boost your workflow:
|
Inject an intentional failure to validate PR pipeline test reporting behavior before reverting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This reverts commit b869a5e.
Force a SQL E2E chaining test assertion mismatch so Azure DevOps publishes a real failed test result through the explicit PublishTestResults path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Revert the temporary E2E assertion change and add an intentional failure in a unit test so validation targets unit-test publication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…lication validation
Contributor
Author
|
/arp run |
paorodma-ms
approved these changes
Jun 17, 2026
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.
Summary
--report-trx) to the unit test coverage step inbuild/jobs/build.ymlDotNetCoreCLItest result publishing for that step (publishTestResults: false)PublishTestResults@2withsucceededOrFailed()against$(Agent.TempDirectory)/coverage/**/*.trxWhy
Tracking