Repository navigation
Validate crash dump sub-options require a main option - #8452
Merged
Amaury Levé (Evangelink) merged 5 commits intoMay 22, 2026
Merged
Conversation
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CrashDump sub-options being ignored without required flags
Validate crash dump sub-options require a main option
May 21, 2026
Amaury Levé (Evangelink)
marked this pull request as ready for review
May 21, 2026 09:24
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request tightens command-line validation for the CrashDump extension so that crash dump sub-options aren’t silently ignored when the crash dump feature itself isn’t enabled, improving UX and preventing confusing no-op configurations.
Changes:
- Add command-line validation to reject
--crashdump-filename/--crashdump-typeunless--crashdumpor--crash-reportis also specified. - Introduce a new localized resource string for the validation error.
- Add unit tests covering both invalid standalone sub-options and valid combinations with main options.
Show a summary per file
| File | Description |
|---|---|
| test/UnitTests/Microsoft.Testing.Extensions.UnitTests/CrashDumpTests.cs | Adds unit tests for missing main crash dump option validation and valid main+sub-option combinations. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/CrashDumpCommandLineProvider.cs | Implements validation to require a main crash dump option when sub-options are present and preserves Windows crash-report rejection. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/CrashDumpResources.resx | Adds a new user-facing validation message resource. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.cs.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.de.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.es.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.fr.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.it.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.ja.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.ko.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.pl.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.pt-BR.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.ru.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.tr.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.zh-Hans.xlf | Updates localization file with the new resource entry. |
| src/Platform/Microsoft.Testing.Extensions.CrashDump/Resources/xlf/CrashDumpResources.zh-Hant.xlf | Updates localization file with the new resource entry. |
Copilot's findings
- Files reviewed: 16/16 changed files
- Comments generated: 1
Member
|
Copilot address review comment |
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Contributor
Author
Amaury Levé (Evangelink)
deleted the
copilot/fix-crashdump-options-ignored
branch
May 22, 2026 09:03
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.
--crashdump-filenameand--crashdump-typewere accepted without--crashdumpor--crash-report, then silently ignored because crash dump environment setup never activates without a main option.--crashdumpor--crash-reportis also present.--crash-reportrejection.Resources
Tests
--crashdump-filename/--crashdump-type.--crashdumpand--crash-report.