TerminalAppLocalTests failing when running unit tests locally #4941

Open
opened 2026-01-31 00:01:10 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Nov 12, 2019).

Originally assigned to: @zadjii-msft on GitHub.

Environment

Windows build number: Version 10.0.18362.356
Windows Terminal version (if applicable): commit e2994ff890

Any other software?
Visual Studio Community 2019 Version 16.3.8

Steps to reproduce

  1. Checkout a recent version of the Terminal.
  2. Build the code.
  3. Execute runut in the tools directory.

Expected behavior

I'm used to having a few failures in the TerminalInputModifierKeyTests, and I know a couple of TabTests are blocked, but the rest of the tests I would usually expected to pass.

Actual behavior

Recently I've been getting failures in TerminalAppLocalTests that I've never had before:

TerminalAppLocalTests::SettingsTests::TryCreateWinRTType [Failed]
TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction [Failed]
TerminalAppLocalTests::KeyBindingsTests::LayerKeybindings [Failed]
TerminalAppLocalTests::KeyBindingsTests::UnbindKeybindings [Failed]

The TryCreateWinRTType test is failing because it's throwing an unidentified C++ exception (I think in the TerminalSettings constructor):

StartGroup: TerminalAppLocalTests::SettingsTests::TryCreateWinRTType
Error: Caught an unidentified C++ exception
EndGroup: TerminalAppLocalTests::SettingsTests::TryCreateWinRTType [Failed]

The KeyBindingsTests are failing because the KeyChordSerialization::FromString method is throwing an exception for all of the key chords, so nothing gets added to the appKeyBindings in the LayerJson call. The test output isn't particularly informative, but here's an example of one of them:

StartGroup: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction
Verify: IsTrue(parseResult)
Verify: IsTrue(parseResult)
Verify: IsTrue(parseResult)
Verify: IsNotNull(appKeyBindings)
Verify: AreEqual(0u, appKeyBindings->_keyShortcuts.size())
Error: Verify: AreEqual(1u, appKeyBindings->_keyShortcuts.size()) - Values (1, 0) [File: C:\Users\James\CPP\terminal\src\cascadia\LocalTests_TerminalApp\KeyBindingsTests.cpp, Function: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction, Line: 63]
EndGroup: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction [Failed]

Are these failures expected when running the tests locally or is it just me?

Originally created by @j4james on GitHub (Nov 12, 2019). Originally assigned to: @zadjii-msft on GitHub. # Environment Windows build number: Version 10.0.18362.356 Windows Terminal version (if applicable): commit e2994ff8908f5a8418f24f2e2954a6c163f910b6 Any other software? Visual Studio Community 2019 Version 16.3.8 # Steps to reproduce 1. Checkout a recent version of the Terminal. 2. Build the code. 3. Execute `runut` in the tools directory. # Expected behavior I'm used to having a few failures in the `TerminalInputModifierKeyTests`, and I know a couple of `TabTests` are blocked, but the rest of the tests I would usually expected to pass. # Actual behavior Recently I've been getting failures in `TerminalAppLocalTests` that I've never had before: TerminalAppLocalTests::SettingsTests::TryCreateWinRTType [Failed] TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction [Failed] TerminalAppLocalTests::KeyBindingsTests::LayerKeybindings [Failed] TerminalAppLocalTests::KeyBindingsTests::UnbindKeybindings [Failed] The `TryCreateWinRTType` test is failing because it's throwing an unidentified C++ exception (I think in the `TerminalSettings` constructor): ``` StartGroup: TerminalAppLocalTests::SettingsTests::TryCreateWinRTType Error: Caught an unidentified C++ exception EndGroup: TerminalAppLocalTests::SettingsTests::TryCreateWinRTType [Failed] ``` The `KeyBindingsTests` are failing because the `KeyChordSerialization::FromString` method is throwing an exception for all of the key chords, so nothing gets added to the `appKeyBindings` in the `LayerJson` call. The test output isn't particularly informative, but here's an example of one of them: ``` StartGroup: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction Verify: IsTrue(parseResult) Verify: IsTrue(parseResult) Verify: IsTrue(parseResult) Verify: IsNotNull(appKeyBindings) Verify: AreEqual(0u, appKeyBindings->_keyShortcuts.size()) Error: Verify: AreEqual(1u, appKeyBindings->_keyShortcuts.size()) - Values (1, 0) [File: C:\Users\James\CPP\terminal\src\cascadia\LocalTests_TerminalApp\KeyBindingsTests.cpp, Function: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction, Line: 63] EndGroup: TerminalAppLocalTests::KeyBindingsTests::ManyKeysSameAction [Failed] ``` Are these failures expected when running the tests locally or is it just me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4941