[PR #2294] Add a Local Test binary, to enable local TerminalApp testing #24879

Open
opened 2026-01-31 09:05:53 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

In #1164 we learned that our CI doesn't support WinRT testing. This made us all sad. Since that merged, we haven't really added any TerminalApp tests, because it's a little too hard. You'd have to uncomment the entire file, and if the list of types changed you'd have to manually update the sxs manifest and appxmanifest.

Since that was all insane, I created a new Terminal App unittesting project without those problems.

  1. The project is not named UnitTest*, so the CI won't run it, but it will run locally.
  2. The project will auto-generate its SxS manifest, using the work from #1987.
  3. We'll use the SxS manifest from step 2 to generate an AppxManifest for running packaged tests.

PR Checklist

  • Closes Guidance: Contributing.md & Coding Style docs needed (#1210)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

I'm 90% just opening this PR to make sure it works in CI.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2294 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request In #1164 we learned that our CI doesn't support WinRT testing. This made us all sad. Since that merged, we haven't really added any TerminalApp tests, because it's a little too hard. You'd have to uncomment the entire file, and if the list of types changed you'd have to manually update the sxs manifest and appxmanifest. Since that was all insane, I created a new Terminal App unittesting project without those problems. 1. The project is not named *Unit*Test*, so the CI won't run it, but it will run locally. 2. The project will auto-generate its SxS manifest, using the work from #1987. 3. We'll use the SxS manifest from step 2 to generate an AppxManifest for running packaged tests. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #1210 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] **Tests added/passed** * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx I'm 90% just opening this PR to make sure it works in CI.
claunia added the pull-request label 2026-01-31 09:05:53 +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#24879