This package provides extensions to Microsoft Testing Platform intended to extend base functionalities. This package extends Microsoft Testing Platform to deploy and launch a packaged Windows (UWP/WinUI) test host through a custom mechanism instead of starting it in place.
Install
| Product | Versions |
|---|---|
| .NET |
README
Microsoft.Testing.Extensions.PackagedApp
This package is experimental and consumes the experimental
ITestHostLauncherextension point of Microsoft.Testing.Platform. The API may change or be removed in a future update.
Microsoft.Testing.Extensions.PackagedApp is an extension for Microsoft.Testing.Platform that deploys a packaged Windows test host (UWP or packaged WinUI) into an isolated directory and launches it from there, instead of starting the test host in place.
It is the consumer of the platform's ITestHostLauncher extension point for packaged Windows apps. UWP and packaged WinUI ship as MSIX and share the same launch mechanism, which is why VSTest exposes a single UwpTestHostRuntimeProvider for both:
- Deploy + launch (implemented): the app's loose layout is deployed to a deployment directory and the produced executable is launched from there.
- Packaged AUMID activation (planned): the loose layout is registered with the
PackageManagerand the app is activated by Application User Model ID (AUMID) viaIApplicationActivationManager— the scenario behind #2784.
Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Extensions.PackagedApp code in the microsoft/testfx GitHub repository.
Install the package
dotnet add package Microsoft.Testing.Extensions.PackagedApp
About
This package extends Microsoft.Testing.Platform with:
- Deployment + launch: stages the packaged Windows (UWP/WinUI) test host payload into an isolated directory and launches the deployed copy.
- Mechanism-agnostic monitoring: returns an
ITestHostHandlethat exposes only the lifecycle the platform needs and no local process id.
Documentation
For comprehensive documentation, see https://aka.ms/testingplatform.
Feedback & contributing
Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.