mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
17 lines
429 B
Plaintext
17 lines
429 B
Plaintext
---
|
|
title: Re-run tests multiple times with the Bun test runner
|
|
sidebarTitle: Re-run tests
|
|
mode: center
|
|
---
|
|
|
|
Use the `--rerun-each` flag to re-run every test multiple times with the Bun test runner. This is useful for finding flaky or non-deterministic tests.
|
|
|
|
```sh terminal icon="terminal"
|
|
# re-run each test 10 times
|
|
bun test --rerun-each 10
|
|
```
|
|
|
|
---
|
|
|
|
See [Docs > Test runner](/test) for complete documentation of `bun test`.
|