From 77eebdb2cea785b2eeaf3c83a4861a4f6c38fbc4 Mon Sep 17 00:00:00 2001 From: gramps Date: Thu, 5 Nov 2026 10:55:32 -0800 Subject: [PATCH] chore(tests): FAST=1 gate (62s) alongside the full 2m19s run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Measured the suite with a TRX logger instead of guessing: 575 tests, 2m19s wall, 165s of test time. The 20-minute runs were NOT the suite — they were a malformed XAML trigger throwing on window construction, crashing the test host and hanging the retry. That is fixed (17d8353). The cost is concentrated: 113 of 155 classes finish under 1s (17s total), while a dozen classes wait on real timers — ZoomBoxInteractionTests alone is 17s for one test. FAST=1 excludes those twelve (527 tests, 49s of test time, 62s wall including the clean build) for runs while the machine is in use; the full set stays the milestone gate. --- scripts/verify.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/verify.sh b/scripts/verify.sh index 90d47cb..9c01ac2 100644 --- a/scripts/verify.sh +++ b/scripts/verify.sh @@ -54,8 +54,17 @@ TESTDLL="$ROOTWIN\\ytLive.Tests\\bin\\Debug\\net8.0-windows10.0.19041.0\\ytLive. "$DOTNET" build "$ROOTWIN\\ytLive.Tests\\ytLive.Tests.csproj" > /dev/null set +e TEST_ARGS=("$TESTDLL") +FILTER="FullyQualifiedName!~RealMouseDrag" +if [ "${FAST:-0}" = "1" ]; then + for slow in ZoomBoxInteractionTests TextLayerOutputTests NotificationAreaIntegrationTests \ + WebcamStartupResourceTests SocialsPreviewTests TopBarModeTests \ + TextLayerEditorPreviewTests TextLayerDropdownTests WebcamMenuGateTests \ + SceneThumbnailTests AlertTickerPreviewDisplayTests FramePumpTests; do + FILTER="$FILTER&FullyQualifiedName!~$slow" + done +fi if [ "${PHYSICAL_TESTS:-0}" != "1" ]; then - TEST_ARGS+=("--TestCaseFilter:FullyQualifiedName!~RealMouseDrag") + TEST_ARGS+=("--TestCaseFilter:$FILTER") fi RUN_RAW="$("$DOTNET" vstest "${TEST_ARGS[@]}" 2>&1)" TEST_EXIT=$?