Skip to content

Cleanup dead code for exception handling#7546

Merged
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/deadcode
Mar 13, 2026
Merged

Cleanup dead code for exception handling#7546
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/deadcode

Conversation

@Youssef1313
Copy link
Member

No description provided.

Copy link
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

Cleans up exception-handling logic in the MSTest adapter’s TestMethodRunner.ExecuteAsync path by removing specialized/duplicated handling and standardizing unexpected exceptions as error results.

Changes:

  • Removed the dedicated catch (TestFailedException) and the “patch last result” logic in ExecuteAsync.
  • Simplified the generic exception path to always return a single error TestResult containing a wrapped TestFailedException.

You can also share your feedback on Copilot code review. Take the survey.

@Youssef1313 Youssef1313 force-pushed the dev/ygerges/deadcode branch from 6ea5edb to 07ca305 Compare March 13, 2026 06:54
@Youssef1313 Youssef1313 merged commit d9b743c into main Mar 13, 2026
10 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/deadcode branch March 13, 2026 12:51
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