# Bun Re-run tests multiple times with the Bun test runner

> Re-run tests multiple times with the Bun test runner

- Skill: `jarle/bun-re-run-tests-multiple-times-with-the-bun-test-runner` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-re-run-tests-multiple-times-with-the-bun-test-runner`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-re-run-tests-multiple-times-with-the-bun-test-runner/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jarle (https://skillmd.com/u/jarle)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jarle/bun-re-run-tests-multiple-times-with-the-bun-test-runner

---


# Re-run tests multiple times with the Bun test runner

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" theme={"theme":{"light":"github-light","dark":"dracula"}}
# re-run each test 10 times
bun test --rerun-each 10
```

***

See [Docs > Test runner](/test) for complete documentation of `bun test`.

