You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runtime tests: repeat tests and set retries from the command line #25152
Command-line (and environment variable) options for the SamplesApp runtime-test runner to repeat tests and control retries, matching what the runner's in-app UI already offers:
--runtime-tests-iterations=N / UITEST_RUNTIME_TESTS_ITERATIONS: run each test N times in a row, stopping at the first failing iteration, and report which iteration failed.
--runtime-tests-attempts=N / UITEST_RUNTIME_TESTS_ATTEMPTS: attempts per iteration before a failure is reported (1 reports the first failure; the default stays 3).
Why is this needed? 🤔
Headless runs (dotnet SamplesApp.dll --runtime-tests=..., the WASM URL parameters, CI scripts) always use the default engine config: one iteration and up to 3 attempts. That makes flaky tests hard to measure locally. Relaunching the app per run costs about 20 s each, and the silent retries hide most failures: a test that fails 1 run in 5 almost always reports as passed.
Measuring a failure rate needs many runs inside one launch, with retries disabled. For example, Given_FlipView.When_TouchFlick_Then_FlipOneItem passes 6/6 headless launches but fails within 2-9 iterations once retries are disabled.
Renderer 🎨
Skia
For which platforms 📱💻🖥️
All platforms 🌍
Anything else we need to know? 💬
Related: #23354 (repeatability of runtime tests) and the flaky tests epic #9080.
Activity
chore(samples): Repeat runtime tests from the command line
docs(skills): Document repeating runtime tests