> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# maxConcurrency

- **类型：** `number`
- **默认值：** `5`
- **CLI：** `--maxConcurrency=10`

使用 `test.concurrent` 或 `describe.concurrent` 时允许同时运行的最大测试用例数量。

超过此限制数量的测试将在前序测试完成后排队运行。


**CLI**

```bash
npx rstest --maxConcurrency=10
```


**rstest.config.ts**

```ts
import { defineConfig } from '@rstest/core';

export default defineConfig({
  maxConcurrency: 10,
});
```

