Repository navigation
Winwright and Winwright.InApp 1.1.9 are on nuget.org. Nothing was removed or renamed, so a suite written for 1.1.8 runs unchanged. One change to the guest runner may be noticed by an existing setup, and it is marked below.
Fixtures
-
Starting the application through a file's association (WW619). A fixture's
activatesnames a file, andthroughnames the ProgID it is opened with, the way Open with or a double-click in Explorer opens it. The ProgID is required, because the default handler is whatever this machine happens to use. Before anything starts, the run refuses a file that is not there, an extension with no association, a ProgID that is not registered, and one that does not claim the type.{ "name": "opened the way Open with does", "activates": "cases/fixtures/cube.glb", "through": "Modelado.glb" }throughalso takes a packaged application's user model ID (<package family name>!<app id>). The file is then opened through the ProgID the package registered for the type, as Explorer does for a Store package, and the process is found by that ID. A copy that was already running is never taken for it, and an ID whose package does not declare the type is refused.{ "name": "opened in the package", "activates": "cases/fixtures/cube.glb", "through": "Modelado_8wekyb3d8bbwe!App" }The process the activation starts is held and stopped with the case. What that process starts in turn is not tracked, and the fixture's report line says so. An activation that starts no process of its own, or whose process exits before it can be held (which is how a single-instance application hands a file to its running copy), is refused and never attached to.
activatesbesideapplication,arguments,variables,unset, an environment orresidentis refused, since the activation carries none of them. -
The window a launcher's child draws (WW620). For an application reached through a CLI alias or a launcher stub, which starts the real window as a child and draws nothing itself,
windowOfnames the image whose window the case is about. The wait for a window then looks for that image among the processes the launch started, instead of the launched process. The child is stopped with the case, and the launcher exiting while the child runs is not reported as the application exiting early. If no process of that image draws a window intimeouts.launch, the refusal lists every process the launch had started.{ "name": "through the alias", "application": "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\modelado-cli.exe", "arguments": ["window", "--provider", "cpu"], "windowOf": "Modelado.exe" }
The guest runner
These are in tools/run-tests-vm.ps1, which an adopting repository points at itself with -Tree. They are not in the packages.
-
-Needs developer-mode(WW618). A run can declare what the guest must already have. The runner checks it in the guest before copying the tree over, and refuses with the setting to change. Registering an unsigned MSIX layout needs Developer Mode; without it the script used to fail halfway with 0x80073CFF. An unknown name is refused before the VM is touched. The runner never changes the guest itself.tools\run-tests-vm.ps1 -Tree D:\path\to\yours -NoGate -Needs developer-mode -Run "powershell -File check-msix.ps1" -
A tree held by an earlier run is freed (WW621). (May notice.) A
-Runthat died, one-Boundgave up on, or one killed by hand can leave its application running from the tree, and the next run used to refuse and send you to the guest console. Now, before it syncs, the runner ends what the earlier run left there: every process running from under the tree, and a .NET host whose command line names it, but never explorer. It prints aheld treeline naming each one by pid, then syncs again. Anything else still holding the tree is refused, as before. -
A red run brings back what crashed (WW623). Every Windows Error Reporting report the guest wrote during the run comes back as
crash-N.wer, with acrashline saying what faulted: the executable, the exception, and the module (or the .NET exception type) and where. A process that died now arrives with more than its exit code. The report is read by position rather than by field name, so it works on a guest whose Windows is not in English.
Installing
<PackageReference Include="Winwright" Version="1.1.9" />
<PackageReference Include="Winwright.InApp" Version="1.1.9" />Full Changelog: v1.1.8...v1.1.9