[PR #1164] Refactor TerminalApp and Add Tests for Xaml Content #24515

Closed
opened 2026-01-31 09:03:45 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/1164

State: closed
Merged: Yes


Summary of the Pull Request

  • Refactors TerminalApp into two projects:
    • TerminalAppLib, which builds a .lib, and includes all the code
    • TerminalApp, which builds a dll by linking the lib
  • Adds a TerminalApp.Unit.Tests project
    • Includes the ability to test cppwinrt types we've authored using a SxS manifest for unpackaged winrt activation
    • includes the ability to test types with XAML content using an appxmanifest
  • Adds a giant doc explaining how this was all done. Really, just go read that doc, it'll really help you understand what's going on in this PR.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Go read doc/cascadia/Unittesting-CppWinRT-Xaml.md

Validation Steps Performed

Manually ran the tests. I'm really hoping they run in CI too 🤞

**Original Pull Request:** https://github.com/microsoft/terminal/pull/1164 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request * Refactors TerminalApp into two projects: - TerminalAppLib, which builds a .lib, and includes all the code - TerminalApp, which builds a dll by linking the lib * Adds a TerminalApp.Unit.Tests project - Includes the ability to test cppwinrt types we've authored using a SxS manifest for unpackaged winrt activation - includes the ability to test types with XAML content using an appxmanifest * Adds a giant doc explaining how this was all done. Really, just go read that doc, it'll really help you understand what's going on in this PR. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #1042 * [x] Tests added/passed - omg I can check this box for real * [x] Requires documentation to be updated <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Go read [doc/cascadia/Unittesting-CppWinRT-Xaml.md](https://github.com/microsoft/terminal/compare/master...dev/migrie/b/add-test-for-xaml-content#diff-4ffb266eae4c692a91dad17e707b436c) <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Manually ran the tests. I'm really hoping they run in CI too 🤞
claunia added the pull-request label 2026-01-31 09:03:45 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24515