chore(tests): FAST=1 gate (62s) alongside the full 2m19s run
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.
This commit is contained in:
+10
-1
@@ -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
|
"$DOTNET" build "$ROOTWIN\\ytLive.Tests\\ytLive.Tests.csproj" > /dev/null
|
||||||
set +e
|
set +e
|
||||||
TEST_ARGS=("$TESTDLL")
|
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
|
if [ "${PHYSICAL_TESTS:-0}" != "1" ]; then
|
||||||
TEST_ARGS+=("--TestCaseFilter:FullyQualifiedName!~RealMouseDrag")
|
TEST_ARGS+=("--TestCaseFilter:$FILTER")
|
||||||
fi
|
fi
|
||||||
RUN_RAW="$("$DOTNET" vstest "${TEST_ARGS[@]}" 2>&1)"
|
RUN_RAW="$("$DOTNET" vstest "${TEST_ARGS[@]}" 2>&1)"
|
||||||
TEST_EXIT=$?
|
TEST_EXIT=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user