> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用 Bun 测试运行器多次重新运行测试

`--rerun-each` 标志让每个测试运行多次。用它来发现不稳定或非确定性的测试。

```sh terminal icon="terminal" theme={null}
# 每个测试重新运行 10 次
bun test --rerun-each 10
```

***

参见 [`bun test`](/test)。
