Skip to content

Cleanup TrxReportEngine#7483

Merged
Youssef1313 merged 6 commits intomainfrom
dev/ygerges/trxengine
Mar 3, 2026
Merged

Cleanup TrxReportEngine#7483
Youssef1313 merged 6 commits intomainfrom
dev/ygerges/trxengine

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 11:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors TRX report generation by moving test-result counting from the TrxReportGenerator/constructor arguments into TrxReportEngine.GenerateReportAsync, simplifying the engine’s construction and adjusting call sites accordingly.

Changes:

  • Simplified TrxReportEngine constructor by removing stored test message arrays and precomputed counters.
  • Updated GenerateReportAsync to accept TestNodeUpdateMessage[] and compute summary counters during result generation.
  • Updated unit tests and out-of-proc TRX generation paths to pass test updates explicitly.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/TrxTests.cs Updates tests to pass TestNodeUpdateMessage[] into GenerateReportAsync and uses the simplified engine constructor.
src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxReportEngine.cs Refactors TRX generation API to accept test updates at generation time and computes summary counters via AddResults.
src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxProcessLifetimeHandler.cs Updates out-of-proc crash handling to call the new GenerateReportAsync(TestNodeUpdateMessage[]) overload.
src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxDataConsumer.cs Removes per-state counting fields and passes collected test updates into the engine at session finish.

Copilot AI review requested due to automatic review settings March 3, 2026 12:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings March 3, 2026 12:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

@Youssef1313 Youssef1313 merged commit d97a36a into main Mar 3, 2026
14 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/trxengine branch March 3, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants