Skip to content

Commit ecb7431

Browse files
committed
perf(PesterConfiguration): 启用多线程执行测试以提高性能
为Pester配置添加了Parallel选项,启用多线程执行测试并将最大线程数设置为4,以加快测试执行速度
1 parent d177f79 commit ecb7431

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PesterConfiguration.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ $config = @{
44
# 输出测试结果对象,因为我不需要解析结果对象,所以关掉
55
# PassThru = $True
66
PassThru = $False
7+
# 多线程执行测试
8+
Parallel = @{
9+
Enabled = $true
10+
MaxThreads = 4
11+
}
712
}
813
CodeCoverage = @{
914
Enabled = $true

0 commit comments

Comments
 (0)