You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix startup scenario test failures on .NET 11 Preview 2 (#5119)
* Fix startup scenario test failures on .NET 11 Preview 2
- Update console template pre.py scripts to search for "Console.WriteLine"
instead of the removed "// See https://aka.ms/new-console-template" comment
- Make insert_after() raise an exception when the search string is not found
instead of silently succeeding
- Handle empty parser results in Reporter.WriteResultTable() to prevent
InvalidOperationException on .Max() of empty sequence
- Add diagnostic logging and fail with exit code -1 when parser returns
no results in Startup.cs
* Gate WPF scenarios to internal runs due to CloseFailed on CI VMs
WPF Template and WPF SFC fail with CloseFailed on generic Helix CI
VMs because CloseMainWindow() doesn't work in headless environments.
This is the same issue that caused WinForms scenarios to be gated.
Gate both WPF scenarios behind SYSTEM_TEAMPROJECT=internal, with
IncludeVMFlakyScenarios override.
* Address PR feedback: add empty-results tests, skip report on failure
- Add three tests for WriteResultTable() with no counters, empty results,
and null results to cover the empty-results guard
- Change Reporter message to neutral 'No results in file.'
- Skip CreateTestReport() in Startup.cs when parser returns no results
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments