close
logo
Rstest
指南
配置
API
English
简体中文
指南
配置
API
English
简体中文
logo
Rstest
Overview

Test Configurations

root
name
include
exclude
setupFiles
projects
update
globals
passWithNoTests
includeSource
testNamePattern
env
retry
testTimeout
hookTimeout
maxConcurrency
pool
isolate
testEnvironment
clearMocks
resetMocks
restoreMocks
unstubEnvs
unstubGlobals
coverage
reporters
hideSkippedTests
slowTestThreshold
snapshotFormat
resolveSnapshotPath
printConsoleTrace
onConsoleLog
disableConsoleIntercept

Build Configurations

plugins
source
output
resolve
tools
dev
performance
📝 在 GitHub 上编辑此页
上一页hookTimeout
下一页pool

#maxConcurrency

  • 类型: number
  • 默认值: 5
  • CLI: --maxConcurrency=10

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

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

CLI
rstest.config.ts
import { defineConfig } from '@rstest/core';

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