Skip to main content

Bail early with the Bun test runner

还没翻译译自英文(bun.com)本页 4 段都还没译

Use the --bail flag to abort a test run after the first failure, so a continuous integration run fails as early as possible.

bun test --bail

To bail after a certain number of failures, pass a number after the flag.

# bail after 10 failures
bun test --bail=10

See bun test.

译文 © 2026 fanyi.dev · 原文 © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)