Skip to content

Add unit tests for FailedTestHelper.FromFailedTest - #11750

Merged
Amaury Levé (Evangelink) merged 6 commits into
mainfrom
copilot/test-improver-add-unit-tests-for-failedtesthelper
Oct 5, 2026
Merged

Amaury Levé (Evangelink) merged 6 commits into
mainfrom
copilot/test-improver-add-unit-tests-for-failedtesthelper

Conversation

Copilot AI commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
  • Add focused unit tests for FromFailedTest location selection, canceled/failed codes, multiline formatting, and single-line/binlog formatting including shortening.
  • Alias the Platform MSBuild project reference to disambiguate the source-linked FailedTestInfoRequest type.
  • Build and run the unit-test suites on net8.0 and net9.0 (148 passed, one existing skip per framework); scan changed files for secrets.
  • Run parallel validation; reviewed the formatting feedback against the helper implementation and passing tests.

Copilot AI balanced review requested due to automatic review settings October 5, 2026 06:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 06:43
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Localized environments can fail two assertions that hard-code English resource text.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 5, 2026
@github-actions github-actions Bot removed the state/needs-review Awaiting review from the team. label Oct 5, 2026
@Evangelink
Amaury Levé (Evangelink) marked this pull request as ready for review October 5, 2026 11:15
Copilot AI balanced review requested due to automatic review settings October 5, 2026 11:15
@Evangelink
Amaury Levé (Evangelink) enabled auto-merge (squash) October 5, 2026 11:15
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Oct 5, 2026
@Evangelink Amaury Levé (Evangelink) changed the title [WIP] Add unit tests for FailedTestHelper.FromFailedTest Add unit tests for FailedTestHelper.FromFailedTest Oct 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

One assertion hard-codes localized English text and can fail under non-English UI cultures.

Review effort: Balanced
Findings: None

Resolved since last review (1)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 11:26
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 5, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 5, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Oct 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The tests accurately cover the requested behavior and the aliasing resolves the linked-type ambiguity without affecting existing references.

Review effort: Balanced
Findings: None

@Evangelink
Amaury Levé (Evangelink) merged commit c68dd5b into main Oct 5, 2026
27 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the copilot/test-improver-add-unit-tests-for-failedtesthelper branch October 5, 2026 12:40
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Oct 5, 2026
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.

[test-improver] Add unit tests for FailedTestHelper.FromFailedTest

4 participants