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

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

使用 `--rerun-each` 标志可以让 Bun 测试运行器多次重新运行每个测试。这对于发现不稳定或非确定性的测试非常有用。

```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
# 每个测试重新运行 10 次
bun test --rerun-each 10
```

***

完整的 `bun test` 文档请参见 [文档 > 测试运行器](/test)。
