Convert LocalTests_SettingsModel into UnitTests_SettingsModel #7743
Labels
Area-CodeHealth
Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Issue-Task
It's a feature request, but it doesn't really need a major design.
Product-Terminal
The new Windows Terminal.
Milestone
Description of the new feature/enhancement
#7667 introduces the TerminalSettingsModel by ripping out a large chunk of TerminalApp. All of the testing was thrown into LocalTests_SettingsModel. Moving them into a unit tests project like TermApp.UnitTests allows us to run these in CI.
About 20/33 tests are able to be moved into a UnitTests-like project with no modifications.
2/33 can be moved with minor modifications (see below).
The remaining 11/33 require a larger refactor (this issue tracks this).
Proposed technical implementation details (optional)
SettingsModelLocalTests::KeyBindingsTests
KeyChord
.KeyChord
is in theTerminalControl
namespace.SettingsModelLocalTests::CommandTests
TestResourceKeyName
andTestLayerOnAutogeneratedName
fail because they need access to the resource loader.SettingsModelLocalTests::SerializationTests
TestReorderWithNullGuids
TestReorderingWithoutGuid
TestLayeringNameOnlyProfiles
TestExplodingNameOnlyProfiles
TestDontLayerGuidFromUserDefaults
ValidateKeybindingsWarnings
TestCommandsAndKeybindings
doesn't import defaults.json, but fails again because it hits the two cases above.ValidateLegacyGlobalsWarning
andTestTrailingCommas
. They don't really need a dependency on importing defaults.json.The text was updated successfully, but these errors were encountered: