For AI agents: the complete documentation index is available at https://rstest.rs/zh/llms.txt, the full documentation bundle is available at https://rstest.rs/zh/llms-full.txt, and this page is available as Markdown at https://rstest.rs/zh/config/test/bail.md.
close
  • 简体中文
  • bail

    • 类型: number
    • 默认值: 0
    • CLI: --bail [number](默认值:1)

    在指定个数的测试失败后中止测试运行。

    设为 0(默认值)时会运行全部测试;设为 1 时会在第一个测试失败后停止运行。

    CLI
    rstest.config.ts
    npx rstest --bail 1