Re-enable LocalizationTests and LocalizationFailingTests#9643
Conversation
TerminalResources translations for fr/es have flowed for all strings asserted by these tests, so remove the temporary [Ignore] attributes added for #9295. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR re-enables the LocalizationTests and LocalizationFailingTests acceptance test classes by removing the temporary class-level [Ignore] attributes (and their explanatory comments) that were added in #9295. Those ignores were a stop-gap while OneLocBuild repeatedly reverted the newly-added TerminalResources.*.xlf targets back to English, which made the tests fail on every localization check-in. Now that proper French and Spanish translations have flowed for all strings these tests assert, the tests can run again, restoring coverage of MTP's terminal-summary localization and UI-language precedence behavior.
Changes:
- Remove the
[Ignore]attribute + comment fromLocalizationTests. - Remove the
[Ignore]attribute + comment fromLocalizationFailingTests.
Show a summary per file
| File | Description |
|---|---|
| test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/LocalizationTests.cs | Removes the temporary [Ignore] and comment so the French/Spanish summary and UI-language precedence tests run again. |
| test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/LocalizationFailingTests.cs | Removes the temporary [Ignore] and comment so the French failure-summary test runs again. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Medium
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Posted via a maintainer's GitHub token, so it appears under their account — the account owner did not write or approve this content personally. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
✅ 22/22 dimensions clean — no findings.
Summary: Straightforward re-enablement of LocalizationTests and LocalizationFailingTests by removing the class-level [Ignore] attributes and their explanatory comments, now that OneLocBuild has shipped proper TerminalResources.*.xlf translations (resolving #9295). The existing test assertions (Unicode normalization, NBSP handling, locale precedence) are well-crafted for this domain. No flakiness, isolation, or correctness concerns.
Dimension breakdown (all N/A or clean)
| # | Dimension | Verdict |
|---|---|---|
| 1 | Algorithmic Correctness | N/A — no logic changes |
| 2 | Threading & Concurrency | N/A — no shared state changes |
| 3 | Security & IPC Contract Safety | N/A — no security-surface changes |
| 4 | Public API & Binary Compatibility | N/A — test-only change |
| 5 | Performance & Allocations | N/A — no hot-path changes |
| 6 | Cross-TFM Compatibility | N/A — no TFM-specific code touched |
| 7 | Resource & IDisposable Management | N/A — no resource changes |
| 8 | Defensive Coding at Boundaries | N/A — no boundary changes |
| 9 | Localization & Resources | ✅ Clean — removes stale workaround, no .xlf edits |
| 10 | Test Isolation | ✅ Clean — tests use per-execution assets and env vars |
| 11 | Assertion Quality | ✅ Clean — appropriate normalization helpers for locale output |
| 12 | Flakiness Patterns | ✅ Clean — no timing, hardcoded ports, or order-dependent assertions |
| 13 | Test Completeness & Coverage | N/A — re-enabling existing tests, no new code |
| 14 | Data-Driven Test Coverage | N/A — no new data rows |
| 15 | Code Structure & Simplification | ✅ Clean — pure removal |
| 16 | Naming & Conventions | N/A — no new identifiers |
| 17 | Documentation Accuracy | ✅ Clean — removes now-outdated comment |
| 18 | Analyzer & Code Fix Quality | N/A — no analyzer changes |
| 19 | IPC Wire Compatibility | N/A — no serialization changes |
| 20 | Build Infrastructure & Dependencies | N/A — no build changes |
| 21 | Scope & PR Discipline | ✅ Clean — single concern, references #9295, notes remaining string for separate tracking |
| 22 | PowerShell Scripting Hygiene | N/A — no .ps1 changes |
🧪 Test quality grade — PR #9643All 4 tests re-enabled by removing the class-level
This advisory comment was generated automatically. Grades are heuristic
|
Fixes #9295.
The
TerminalResources.*.xlftranslations for French and Spanish have now flowed for every string asserted byLocalizationTestsandLocalizationFailingTests, so the temporary[Ignore]attributes (and their explanatory comments) added in #9295 are removed.Notes
state="new"in thefr/esxlf files isErroredAssembliesHeader("Errored assemblies:"), which none of these tests assert on, so it does not block re-enabling. It may still be worth tracking separately for the downstream loc pipeline (icxLocBug).Validation
.\build.cmd -packdotnet testonMicrosoft.Testing.Platform.Acceptance.IntegrationTestsfiltered to~Localization: 12/12 passed.