Skip to content

Simplify crash dump implementation to not need ITestApplicationModuleInfo#7709

Merged
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/crashdump-testappinfo
Apr 10, 2026
Merged

Simplify crash dump implementation to not need ITestApplicationModuleInfo#7709
Youssef1313 merged 1 commit intomainfrom
dev/ygerges/crashdump-testappinfo

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 10, 2026 13:48
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 simplifies the CrashDump extension wiring by removing the dependency on ITestApplicationModuleInfo, and instead derives the default dump filename prefix from the entry assembly name.

Changes:

  • Remove ITestApplicationModuleInfo usage from AddCrashDumpProvider and CrashDumpEnvironmentVariableProvider.
  • Compute the default crash dump filename pattern using Assembly.GetEntryAssembly()?.GetName().Name.

Reviewed changes

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

File Description
src/Platform/Microsoft.Testing.Extensions.CrashDump/CrashDumpExtensions.cs Stops passing ITestApplicationModuleInfo into the crash dump environment variable provider.
src/Platform/Microsoft.Testing.Extensions.CrashDump/CrashDumpEnvironmentVariableProvider.cs Removes the module info dependency and builds the default dump filename pattern from the entry assembly name.

@Youssef1313 Youssef1313 enabled auto-merge (squash) April 10, 2026 22:25
@Youssef1313 Youssef1313 merged commit 82219ff into main Apr 10, 2026
15 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/crashdump-testappinfo branch April 10, 2026 22:25
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