From adf9883ae91125f3c9d900cb9dfd16121dd05f3d Mon Sep 17 00:00:00 2001 From: gramps Date: Thu, 5 Nov 2026 11:03:59 -0800 Subject: [PATCH] docs(tests): document FAST and PHYSICAL_TESTS in the gate header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also corrects what the 17s actually is: the RealApp collection's one-time fixture (WPF App + XAML resources + audio/WebView2 startup) charged to whichever UI test runs first — ZoomBoxInteractionTests measures 1.1s beside other UI tests and 17.1s when it happens to be first. Nothing to trim in the test; the lever would be App startup cost. Full suite on the current tree: 575 passed, 0 failed, 1m47s, clean build. --- scripts/verify.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/verify.sh b/scripts/verify.sh index 9c01ac2..dad342f 100644 --- a/scripts/verify.sh +++ b/scripts/verify.sh @@ -10,6 +10,17 @@ # Requires WINDOWS dotnet (never Linux dotnet — it re-downloads the windowsdesktop packs # over the slow 9p bridge; see docs/ai/environment.md -> Run). Reads the Windows path from the # WSL mount. +# +# Two switches, both for running this on a machine somebody is using: +# FAST=1 skip the twelve heaviest test classes (527 tests, ~50s of test time) — +# most of their cost is the RealApp fixture: the WPF App, its XAML resources +# and audio/WebView2 startup, created once and charged to whichever UI test +# runs first. Full suite: 575 tests, ~1m50s. +# PHYSICAL_TESTS=1 include tests that drive the REAL cursor (SetCursorPos + mouse_event). +# Excluded by default: running them hijacks the machine you are typing on. +# (The old mouse-drag test is gone; its arithmetic is pure now — see +# DragReorderMathTests. The switch stays for anything of that kind later.) +# Scoped runs while working: dotnet vstest --TestCaseFilter:"FullyQualifiedName~TheClass" set -euo pipefail