Tuist

Tuist

Product

Stress-test the tests your branch adds

#12809

A test that only fails now and then usually reaches your default branch before anyone notices. Tuist can now rerun the test cases a branch adds, several times each in a fresh process, and flag the ones that pass and fail on the same commit.

A test run's test case list, with new test cases badged by the number of repetitions they were rerun and one showing that 3 of 10 failed

Enable it with a mode. report warns about each flaky test case and leaves your run's own result alone. enforce fails the run instead.

sh
tuist xcodebuild test --stress-new-tests report -scheme MyScheme

Gradle takes the same modes through a stressNewTests block in settings.gradle.kts, and both read TUIST_TEST_STRESS_NEW_TESTS so you can vary the mode per CI lane. A fast test case earns ten reruns and a slow one fewer, and the pass stops at 200 test cases or ten minutes.

Learn more in the flaky tests documentation.