Skip to content

Runtime tests: repeat tests and set retries from the command line #25152

Closed

Description

@MartinZikmund

What would you like to be added? 💡

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/enhancementtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions